loginpass icon indicating copy to clipboard operation
loginpass copied to clipboard

[Django] Pass "next" urlparam to authorize endpoint

Open james-emerton opened this issue 4 years ago • 0 comments

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.

james-emerton avatar Apr 07 '21 23:04 james-emerton