pennersr / django-allauth

Integrated set of Django applications addressing authentication, registration, account management as well as 3rd party (social) account authentication.
https://allauth.org
MIT License
9.5k stars 3.03k forks source link

Is it possible to configure microsoft/azure login/api endpoint? #3838

Closed rqi14 closed 5 months ago

rqi14 commented 5 months ago

Hi. Thanks for sharing this awesome project.

The general OIDC interface works great. I recently found that allauth supports microsoft/azure provider that communicates using graph api. It will be very useful. But it seems to support only the most common service run by microsoft, but not the national clouds. The Microsoft 365 service run by 21vianet in China has the graph api endpoint set to https://microsoftgraph.chinacloudapi.cn, instead of https://graph.microsoft.com.

The login url is also different. for m365 by 21vianet, it is login.partner.microsoftonline.cn, instead of login.partner.microsoftonline.com

I am wondering if there is a way to set the endpoint in the configuration file?

pennersr commented 5 months ago

That is now possible via 92c1918f