Forum Discussion

gjatteau's avatar
gjatteau
New Member
1 year ago
Solved

Custom Viz and authentication API

Hello,

I try to acquire a token from a PowerBI custom visual, but when I call
options.host.acquireAADTokenService.acquireAADTokenstatus(),
I get the status DisabledByAdmin.
 
How can I enable the authentication API in the PowerBI settings? Which parameter must be enabled? Any license restrictions?
 
Thanks
  • Hi gjatteau, 

    The setting is named AppSource Custom Visuals SSO, under the Power BI Visuals section

     

    You can read more in the developer documentation on the Authentication API, and this also links to the official doc on tenant settings.

     

    There are no licensing restrictions, but bear in mind that if you're building this functionality in as a key dependency and planning to distribute your visual, any users will need this setting available to use any functionality that your visual leverages around SSO. As such, you may need some logic and UX to handle the scenario where this isn't permitted/enabled in a users' tenant.

     

    Daniel

1 Reply

Replies have been turned off for this discussion
  • dm-p's avatar
    dm-p
    Super User

    Hi gjatteau, 

    The setting is named AppSource Custom Visuals SSO, under the Power BI Visuals section

     

    You can read more in the developer documentation on the Authentication API, and this also links to the official doc on tenant settings.

     

    There are no licensing restrictions, but bear in mind that if you're building this functionality in as a key dependency and planning to distribute your visual, any users will need this setting available to use any functionality that your visual leverages around SSO. As such, you may need some logic and UX to handle the scenario where this isn't permitted/enabled in a users' tenant.

     

    Daniel