Forum Discussion

gjatteau's avatar
gjatteau
New Member
2 years ago

acquireAADTokenService in PowerBI custom visual

Hello

I'm trying to implement a custom visual that uses the authentication API following the documentaion.

 

Though I'm using API 5.9.1, I don't have access to the service this.acquireAADTokenService(). It is not part of the IVisual interface. Any clue how to access this service ? Is there some sort of injection mecannism?

 

Thanks for your help.

2 Replies

  • hski-bayer's avatar
    hski-bayer
    Regular Visitor

    You can access it as part of constructor(options: VisualConstructorOptions) { ... } using options.host.acquireAADTokenService

     

    BR, Holger

  • Sorry, I missed your answer. Thanks for your help ! I managed to get an access token in my visual.