AngellusMortis / django_microsoft_auth

Simple app to enable Microsoft Account, Office 365 and Xbox Live authentcation as a Django authentcation backend.
MIT License
137 stars 84 forks source link

Additional URL Parameters support #480

Closed TheCyberFox closed 2 years ago

TheCyberFox commented 2 years ago

Currently from what the documentation provides and some searching through the base code I did on my own time, there is no inherit support for additional url parameter parsing when requesting the authorization code for the OAuth api such as the optional url parameter "prompt" as seen in the official microsoft docs: https://docs.microsoft.com/en-us/azure/active-directory/develop/v2-oauth2-auth-code-flow I have found a temporary work around to this by including the kwarg prompt in the authorization_url() method found in client.py however there should really be some support for this within the config file just like the extra_scopes feature that is included in this project. For anyone interested, here is my work around: Client.py -> authorization_url() return super().authorization_url(auth_url, response_mode="form_post", prompt="select_account")

TheCyberFox commented 2 years ago

481