-
Notifications
You must be signed in to change notification settings - Fork 53
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
Init function should have option to redirect on authentication failure #20
Comments
So what we would need is:
If you want to set the default otherwise:
Open to a PR when you are ready. |
What would be the route entry in the config file? What about the location header for 302? |
Good point, so you would need to extend the cansec.init({... , unauthenticated: {code: 302, location: ...}, ...}); |
Init function should have option to redirect on authentication failure with status 302 Found.
Redirect to login page is desirable in the following cases.
The text was updated successfully, but these errors were encountered: