-
-
Notifications
You must be signed in to change notification settings - Fork 553
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New Backend? Microsoft Graph #4
Comments
After a better understanding it is possible to use the SOCIAL_AUTH_AZUREAD with Microsoft Graph by doing: SOCIAL_AUTH_AZUREAD_OAUTH2_RESOURCE = 'https://graph.microsoft.com/' |
@NBajanca I've added it to the AzureAD backend docs python-social-auth/social-docs@499fbaa. |
Thank you for this and for this great library @omab. Happy new year! |
I think it needs to be updated. I am getting following error when AzureADOAuth2 backend -
If I understand correctly, instead of using 1.0 API, it's asking for 2.0 as when we specify grpah.microsoft.com, it might be pointing to the latest one. |
Microsoft Graph documentation says that AzureAD endpoints are used, and so it would make sense to use AzureAD Oauth2 backend.
My biggest doubt is in
SOCIAL_AUTH_AZUREAD_OAUTH2_RESOURCE
where I though the correct value would behttps://graph.microsoft.com/v1.0/me
Unfortunately, I always get this error:
I think this is related to the fact that graph is not considered a resource by Azure AD but the documentation is a little scarce.
For my needs, I configured a new backend:
I would like assistance to understand if I should fork my developments or if I'm doing something wrong about AzureAD backend.
The text was updated successfully, but these errors were encountered: