invalid_scope for scope which is configured for the client

SeDev 0 Reputation points
2023-07-28T07:36:56.72+00:00

Hello,

I am implementing sign-in via Microsoft and face the invalid_scope issue which I can't get and solve. So, I added the profile scope for my client here (this is Azure portal UI - App registration)
User's image

But if I try to add this into auth request like this:

https://login.microsoftonline.com/consumers/oauth2/v2.0/authorize?client_id={my-client}&scope=https%3A%2F%2Fgraph.microsoft.com%2Fprofile&response_type=code&redirect_uri={redirect-value}&state={state-value}

or even

https://login.microsoftonline.com/consumers/oauth2/v2.0/authorize?client_id={my-client}&scope=profile&response_type=code&redirect_uri={redirect-value}&state={state-value}

result is the same - the invalid_scope error. The scope https://graph.microsoft.com/User.Read
works fine.
Could you help me to get what is wrong with my request and how it should be?

Thank you

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,445 questions
0 comments No comments
{count} votes