What is the connection between "API permissions" that I add in the app registration and the actual requested scopes?
I noticed that I still can request all my desired permissions, but can leave this registration (besides the "application" permission) empty:
And this works:
https://login.microsoftonline.com/common/oauth2/v2.0/authorize?
client_id=05f0df69-2f61-4b41-91ff-31656787f9d3
&redirect_uri=https%3A%2F%2F....azurewebsites.net%2Fids%2Foidc-signin-office365auth
&response_type=code%20id_token&scope=openid%20profile%20email%20User.Read%20offline_access%20User.ReadBasic.All
&response_mode=form_post
&nonce=...
Scopes:
- openid
- profile
- User.Read
- offline_access
- User.ReadBasic.All
In the past I thought the requested scopes and the app permissions in the app registration must match, but this doesn't seem to be the case anymore.
My goal is to keep the app registration as small as possible.
This question might be somewhat related to this question.