Forum Discussion
Power Bi Api access token validation
- Anonymous2 years ago
Hi rahulrathor ,
Please review the following link, hope its solution can help you.
Can Auth0 integrate PowerBI? - Auth0 Community
There may be two options for this integration:
Option 1 : Provisioning the users on Azure AD with Auth0 identities
This option is explained for Office 365 app but the same idea may apply for PowerBI too. In this option, the domain federation is done in Azure AD so it should work for every application that uses Azure AD to authenticate technically.
On the first link below, there is a sample rule to create any required licenses on the Azure AD side, so that after a user logs in using a 3rd party IdP e.g. Google through Auth0, Office 365 sees the user as a valid user.
1- https://auth0.com/docs/integrations/office-365-custom-provisioning
2- https://auth0.com/learn/sprinklr-achieves-impossible-sso-with-auth0/
Option 2: Leveraging Power-BI embedded row security feature:
With this option, you may send the user’s credentials obtained from a successful authentication through Auth0 to power-bi API as a proof of user identity. Here are some related links showing how to implement this.
1- Security in Power BI embedded analytics - Power BI | Microsoft Learn
2- Embedding and Report Filters - Microsoft Power BI Community
3- azure-content/power-bi-embedded-app-token-flow.md at master · uglide/azure-content · GitHub
-
Use the external Postman tool to acquire a token. For more information, see this Power BI Community thread. The request URL for a service principal must be
https://login.microsoftonline.com/{tenantID}/oauth2/v2.0/token, but for a master user, it can be eitherhttps://login.microsoftonline.com/{tenantID}/oauth2/v2.0/tokenorhttps://login.microsoftonline.com/common/oauth2/token. -
Follow the sample solutions at PowerBI-Developer-Samples. For example:
-
For Embed for your customers see this AadService.cs file. Find the
authorityUrlandscopeBaseat AppOwnsData/Web.config. -
For Embed for your organization see this OwinOpenIdConnect.cs file. Find
authorityUrlat UserOwnsData/Web.config.
-
Best Regards
-
Hi rahulrathor ,
Please review the following link, hope its solution can help you.
Can Auth0 integrate PowerBI? - Auth0 Community
There may be two options for this integration:
Option 1 : Provisioning the users on Azure AD with Auth0 identities
This option is explained for Office 365 app but the same idea may apply for PowerBI too. In this option, the domain federation is done in Azure AD so it should work for every application that uses Azure AD to authenticate technically.
On the first link below, there is a sample rule to create any required licenses on the Azure AD side, so that after a user logs in using a 3rd party IdP e.g. Google through Auth0, Office 365 sees the user as a valid user.
1- https://auth0.com/docs/integrations/office-365-custom-provisioning
2- https://auth0.com/learn/sprinklr-achieves-impossible-sso-with-auth0/
Option 2: Leveraging Power-BI embedded row security feature:
With this option, you may send the user’s credentials obtained from a successful authentication through Auth0 to power-bi API as a proof of user identity. Here are some related links showing how to implement this.
1- Security in Power BI embedded analytics - Power BI | Microsoft Learn
2- Embedding and Report Filters - Microsoft Power BI Community
3- azure-content/power-bi-embedded-app-token-flow.md at master · uglide/azure-content · GitHub
Use the external Postman tool to acquire a token. For more information, see this Power BI Community thread. The request URL for a service principal must be
https://login.microsoftonline.com/{tenantID}/oauth2/v2.0/token, but for a master user, it can be eitherhttps://login.microsoftonline.com/{tenantID}/oauth2/v2.0/tokenorhttps://login.microsoftonline.com/common/oauth2/token.Follow the sample solutions at PowerBI-Developer-Samples. For example:
For Embed for your customers see this AadService.cs file. Find the
authorityUrlandscopeBaseat AppOwnsData/Web.config.For Embed for your organization see this OwinOpenIdConnect.cs file. Find
authorityUrlat UserOwnsData/Web.config.
Best Regards