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

Save target url in SessionStorage for post-auth redirect; Add EmberSimpleAuth types #20

Merged
merged 2 commits into from
Feb 3, 2023

Conversation

meirish
Copy link
Contributor

@meirish meirish commented Feb 2, 2023

Ember-simple-auth tracks the current transition in a service, but if you do a full redirect for authentication, that value isn't persisted anywhere.

This PR removes some code that I believe was trying to duplicate the ember-simple-auth functionality. It also adds an alternate method for maintaining the target url that uses the browser's SessionStorage API which does survive redirects.

The result of this is: if you're following a link from an email and aren't authenticated, you should get redirected to the target link after completing authentication.

@jeffdaley jeffdaley mentioned this pull request Feb 2, 2023
@jeffdaley jeffdaley changed the title bugfix: save target url in SessionStorage for post-auth after redirect Save target url in SessionStorage for post-auth redirect; Add EmberSimpleAuth types Feb 2, 2023
@jeffdaley jeffdaley merged commit 631585d into hashicorp-forge:main Feb 3, 2023
anuragprafulla referenced this pull request in razorpay/hermes Jun 27, 2023
Save target url in SessionStorage for post-auth redirect; Add EmberSimpleAuth types
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.

None yet

2 participants