Forum Discussion

Charles001's avatar
Charles001
Frequent Visitor
4 years ago
Solved

Revoke Token for Power BI Embedded / Python

I am trying to find a way to revoke an access token. I am using Power BI Embedded with Python. In the python section I am using Confidential Client Application and method acquire_token_for_client. ...
  • Anonymous's avatar
    Anonymous
    4 years ago

    Hi Charles001,

    AFAIK, you cannot directly revoke the current tokens, it has corresponded expiry time. (you can do custom on the azure side to set the general token expired time)

    For your requirement, I'd like to suggest you trace the logout operations, and invoke the generate token functions to force generated new token and the old one will be disabled.

    In addition, since power bi embed is based on the azure ad, you can also take a look at the following link to revoke the user access:

    Revoke user access in an emergency in Azure Active Directory | Microsoft Docs

    Regards,

    Xiaoxin Sheng