Reputation: 5999
I have a very basic project authenticating user on my Office 365 directory.
When I access it, I have this consent screen:
I'm a bit surprised because, I've removed all the permissions to my application:
The request URL has this permissions:
&scope=openid%20profile%20offline_access%20User.Read.All%20Calendars.ReadWrite.Shared
Why does the application ask for this permissions even if they are not set in AzureAD?
Upvotes: 1
Views: 109
Reputation: 15639
There is a difference between v1.0 endpoint and v2.0 endpoint. When use v1.0 endpoint, we will use resource
instead of scope
. All the permissions should be listed under API permissions.
However, when use v2.0 endpoint, we can ask for permissions dynamically. It doesn't matter if you have permissions under API permissions. When you add the permissions to scope, you will see the consent window.
Upvotes: 2