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

Redirect back after login #243

Closed
pvagnini opened this issue Aug 31, 2018 · 1 comment
Closed

Redirect back after login #243

pvagnini opened this issue Aug 31, 2018 · 1 comment

Comments

@pvagnini
Copy link

Hi @asadsahi,

When a user enters a URL to a page that requires authentication they are redirected to the login page as should be the case. I am looking for the way once login is successful to redirect back to the original request rather than main index page.

Are you able to point me in the right direction please?

Regards
Paolo

@asadsahi
Copy link
Collaborator

@pvagnini with current implementation redirect_uri in auth.service.ts is for this purpose. since you need to run logic to call oauth's login on client side to store token. See the logic in login-redirect.html to see if it fits your need and instead of redirecting to / , redirect to another clientside route.

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

No branches or pull requests

2 participants