Weird-Sheep-Labs / django-azure-auth

A simple Django app for user authentication with Azure Active Directory/Entra ID.
MIT License
17 stars 10 forks source link

Redirect to intended protected view after logging in #25

Closed regoawt closed 5 months ago

regoawt commented 5 months ago

If a user tries to access a protected view before logging in, they will be prompted to authenticate through the authentication flow and then redirected to the LOGIN_REDIRECT_URL page.

A ?next=<intended_url> query param with could be passed from the middleware, through the callback from AAD and used as the terminal redirection instead of LOGIN_REDIRECT_URL.