You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
emmanuelbuah
changed the title
Handling multiple auth methods
Handling multiple oauth authentication
Aug 25, 2014
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.
The text was updated successfully, but these errors were encountered: