Skip to content
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

[Django] Pass "next" urlparam to authorize endpoint #84

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

james-emerton
Copy link

When an unauthenticated user accesses a view that requires authentication, the initial redirect to the login endpoint includes a next url parameter containing the url for the original view. This change arranges to have that same parameter available to the authorize endpoint so the user can be redirected to the page they originally intended to visit.

Also fixed an unrelated typo.

NB: It is the responsibility of handle_authorize to verify that the value of next is safe before responding with a redirect.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant