Forum Discussion

lwgoBiadmin's avatar
lwgoBiadmin
Frequent Visitor
4 years ago
Solved

Embed token expiration time concern

Hi All, We are planning to cache token using redis, our concern is explained below.      After generating the first token it will be stored in the cache and we will be using the same embed token un...
  • Anonymous's avatar
    Anonymous
    4 years ago

    Hi lwgoBiadmin ,

     

    As far as I know, by default, the Azure token expiration time is one hour. There are two kind of embedding methods, embed for organization(user owns data)  and embed for customer (app owns data). 

    Embed token should be used in app owns data. Power BI will generate embed tokens by Azure token generated by master account or service principal.

    For reference: Understand the permission tokens needed for embedding a Power BI application

    If you get report before your token expired, you may still could see your report by cache. However, if you do some interaction on your report, your report will be broken due to token is expired. Then you need to get active embed token.

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

     

    Best Regards,
    Rico Zhou

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.