Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
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.
Sorry, I missed your answer. Thanks for your help ! I managed to get an access token in my visual.
You can access it as part of constructor(options: VisualConstructorOptions) { ... } using options.host.acquireAADTokenService
BR, Holger
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.