Skip to content
This repository has been archived by the owner on Nov 7, 2020. It is now read-only.

add request destination handling for identity login button. #450

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

add request destination handling for identity login button. #450

wants to merge 1 commit into from

Conversation

thehunmonkgroup
Copy link
Contributor

This exposes the requestDestination parameter to all views, which is
a special querystring parameter than can be appended for redirect
destination handling.

The current implementation leverages the existing destination storage
in the user session related to google auth flow. the _destination
parameter is included in the login link in the _identity view, thus
enabling users to be redirected to the same page they were on after
logging in. while ensureAuthenticated() handles the auth-required
case, this handles the anonymous user case.

This exposes the requestDestination parameter to all views, which is
a special querystring parameter than can be appended for redirect
destination handling.

The current implementation leverages the existing destination storage
in the user session related to google auth flow. the _destination
parameter is included in the login link in the _identity view, thus
enabling users to be redirected to the same page they were on after
logging in. while ensureAuthenticated() handles the auth-required
case, this handles the anonymous user case.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant