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

accessing auth, without fully blocking the endpoint #57

Closed
rutaihwa opened this issue Mar 11, 2015 · 3 comments
Closed

accessing auth, without fully blocking the endpoint #57

rutaihwa opened this issue Mar 11, 2015 · 3 comments
Assignees
Labels
support Questions, discussions, and general support

Comments

@rutaihwa
Copy link

I would like to understand how to access auth to an end point even though its not required that one would have been authenticated, in a way, offer a different views according to authenticated users.
Simple example, /register if one is authenticated skip, if not show the form. My problem is if i use auth: 'stategy', everyone get redirected to /redirectURI with next register which is not what i want.

@rutaihwa rutaihwa changed the title accessing accessing auth, without fully blocking the endpoint Mar 11, 2015
@hueniverse
Copy link
Contributor

You can use auth mode 'try'

@rutaihwa
Copy link
Author

Thanks @hueniverse , it works! with route plugin option redirectTo: false.

@hueniverse hueniverse self-assigned this Mar 11, 2015
@Marsup Marsup added support Questions, discussions, and general support and removed question labels Sep 21, 2019
@lock
Copy link

lock bot commented Jan 9, 2020

This thread has been automatically locked due to inactivity. Please open a new issue for related bugs or questions following the new issue template instructions.

@lock lock bot locked as resolved and limited conversation to collaborators Jan 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
support Questions, discussions, and general support
Projects
None yet
Development

No branches or pull requests

3 participants