While doing the authentication using Azure AD, i am getting this error.
AADSTS90008: The user or administrator has not consented to use the application with ID 'Application (client) ID'(appname). This happened because application is misconfigured: it must require access to Windows Azure Active Directory by specifying at least 'Sign in and read user profile' permission
.
The API permission configured in my application registered in AD are
But after this error if check in my application permissions page under user consent tab, i can see three permissions.
Third one which i have not added to my application When checked, the user permission is enabled only for the third one, not the required two . User has given consent while logging in .
the consent screen looks like this:
How can i fix this ?