Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Applicable88
Impactful Individual
Impactful Individual

How to renew the acces token for a embedd iFrame report?

Hello,

 

I'm using a the embedded adress of a report, wrapped in in 10 minutes reoccruing automatic refresh, which I wrote inside the html file which is on that pc,  I don't know how long it takes, but after a while there is apparently a session timeout and the  "sign in" screen appears and only if someone manually signs in can run the embedded again. 

Is there a way to renew the embedded token with javascript inside my html file?

 

Thank you very much in advance. 

Best. 

1 ACCEPTED SOLUTION

HI @Applicable88,

You can take a look at the following link if helps:

Refresh the access token in Power BI embedded analytics | Microsoft Docs

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

3 REPLIES 3
v-shex-msft
Community Support
Community Support

HI @Applicable88,

I think you need to create a request to a function to invoke and store the embedded token string and expired time into the cache or session.
After these steps, you can add a timer to compare the current DateTime and expired time to invoke the function to generate new tokens before the current one expired.

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

@v-shex-msft do you know where I can get any further information how to do it, maybe in JS ?

HI @Applicable88,

You can take a look at the following link if helps:

Refresh the access token in Power BI embedded analytics | Microsoft Docs

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.