calling acquireTokenSilent(), with two scopes, one for user_impersonation, and another for report.embed (b2c app owns data power bi embedding), give me error: request specifies more than one resource for an access token which is not supported

Adnan Ahmed 0 Reputation points
2024-07-12T19:01:31.6233333+00:00

calling acquireTokenSilent(), with two scopes, one for user_impersonation, and another for report.embed (b2c app owns data power bi embedding), give me error: request specifies more than one resource for an access token which is not supported. We have an existing b2c application running, there is a new scope needed for the web api to work for our front-end, the web api is for app owns data power bi embedding, I have added a scope for it. I want to use existing b2c auth as a single sign on and add the scope for reports.embed in order to communicate with our back-end api as well. How can I do this without getting the error.

Microsoft Authenticator
Microsoft Authenticator
A Microsoft app for iOS and Android devices that enables authentication with two-factor verification, phone sign-in, and code generation.
8,609 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.