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

Handling multiple oauth authentication #32

Open
emmanuelbuah opened this issue Aug 25, 2014 · 0 comments
Open

Handling multiple oauth authentication #32

emmanuelbuah opened this issue Aug 25, 2014 · 0 comments

Comments

@emmanuelbuah
Copy link

This is more of question/suggestion than a ticket. Since the oauth func writes to the response on failure, it seems impossible to use multiple oauth/auth for a martini app since the first auth handler to fail will end the request cycle. It would be nice to provide an extra skip parameter to oauth2.LoginRequired to indicate whether it should skip on the next handler on failure or not. This will allow for chaining of multiple auth handlers (fb, google, etc)

If there is a way to chain multiple auth handlers with the current implementation, I would be happy if someone can point me to any doc/code sample.

@emmanuelbuah emmanuelbuah changed the title Handling multiple auth methods Handling multiple oauth authentication Aug 25, 2014
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

1 participant