Dears, My Angular app needs to get a access_token with scope=https://analytics.windows.net/powerbi/api
Using this I need to fetch Power BI embed token. I cannot use username/password or client_secret. I can provide client_id/tenant_id, redirect_uri, I have looked at all the sof posts and read many documents in the net, but cannot figure it out. My app has redirect AAD login, but the access token has scope=api://<some id> profile openid ...
Can I use implicit grant? Authorization code flow need interactive login, which is not possible. Can anyone help please? Any angular code sample/links to code will be great.
.....
More Details:
We are using "App-owns-data" approach. Logged in users will not have Power BI login access. We use security principal at Azure Side, and added power-bi-service API permission with report/dataset/dashboard read.all with the registered UI app.