-
Notifications
You must be signed in to change notification settings - Fork 388
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
Support for SSO/Oauth #310
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
This library looks very useful. However at the moment I don't think it supports oauth? Basically I don't want my users to register with a username/password, but instead I'd like them to use SSO, maybe provided by Facebook or Google. Once the oauth flow is complete, I'd like to use my own JWT tokens though. I'd like to use the user info I get from SSO to build the token.
So far I have something like this:
auth.go
main.go
I have a HTML page that redirects to
auth/{provider}
and then the OAuth flow begins. The user is redirected to Facebook, authorizes my app, and then is redirected to my app where they will hit the/auth_callback
. That's where I get the user info and I build the token.This works, but I was wondering if this library supports the 2-steps OAuth process. In the example above, I haven't implemented the refresh token, the logout, or the validation of the token. I'd prefer trusting this library rather than re-implementing that myself, potentially with some security vulnerabilities haha.
If the library can't do that, maybe you heard of another one that could do that?
The text was updated successfully, but these errors were encountered: