oauth2 icon indicating copy to clipboard operation
oauth2 copied to clipboard

Handling multiple oauth authentication

Open emmanuelbuah opened this issue 9 years ago • 0 comments

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 avatar Aug 25 '14 21:08 emmanuelbuah