I am trying to implement oauth2 proxy with Azure Active Directory. It seems the oauth2 proxy is able to communicate with Azure AD App, and even it authenticates most of the users from organization, but for few Users we are not able to authenticate users.
Oauth2_proxy logs say the following: (internally after authentication the requests goes on this endpoint to get the user's details: https://graph.windows.net/me?api-version=1.6, but for few users the response looks like this:
{"odata.error":{"code":"Authorization_RequestDenied","message":{"lang":"en","value":"Insufficient privileges to complete the operation."},"requestId":"{reqID}","date":"2020-08-18T15:18:33"}}
Errors:
- Permission Denied: "" is unauthorized
- ErrorPage 403 Permission Denied Invalid Account
Any inputs would be helpful!
PS. Tried to select all the permissions in azure active directory app, but didn't work.
https://graph.microsoft.com/v1.0/me
– Carl Zhao