-
Notifications
You must be signed in to change notification settings - Fork 606
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
Retry transitions after page reloads #2808
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ember-simple-auth supports retrying transitions after the session is authenticated, but this only works if the page isn't refreshed.
session.attemptedTransition
isn't persisted, so the info is gone after a reload.ember-simple-auth does already support a cookie-based retry, but that is only enabled during FastBoot. Would it be an option to either always use this cookie-based setup, or make it an opt-in somehow?
Our use-case
We have an authenticator that redirects users to an authentication server on a different domain (which then redirects back to the app with a token), but as a result the original transition information is lost.
We can hook into the cookie-based redirect setup by writing the url to the
ember_simple_auth-redirectTarget
cookie ourselves (in the overridenrequireAuthentication
method of our app's SessionService). But it would be nice if this wouldn't require custom app code.Code of our workaround
The text was updated successfully, but these errors were encountered: