Issue when creating OBO token #109
-
Hi, We're getting the following error when trying to get an OBO token using the users access token: We've attempted to solve this by propagating the error back to the front end and calling Unfortunately this doesn't seem to be working and we're seeing no difference in behaviour:
A few questions:
Any other guidance would be appreciated! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 8 replies
-
Hi @q-benwillis,
|
Beta Was this translation helpful? Give feedback.
This might be the issue, our sample does not fully support B2B scenarios at the moment.
I have created a PR to fix this, please refer to it and change your code accordingly: #115
Another thing, if you're working dynamically with scopes and not configuring them on your entra Id application, you will need to ask for a consent for specific scopes and not use the .default scope:
For example, if you want to ask for a token for "https://analysis.windows.net/powerbi/api/Item.Read.All" and you don't have it configured on your application, you must ask for a consent for "https://analysis.windows.net/powerbi/api/Item.Read.All" and not "https://analysis.windows.net/powerbi/api/.default".