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

how to implemente an entire user system based on go_oauth2? #219

Open
wilsonlichina opened this issue May 1, 2022 · 1 comment
Open

Comments

@wilsonlichina
Copy link

wilsonlichina commented May 1, 2022

hello guys,

this project is very good, despite I know there are still many things I don't understand. you known, i want to implement an entire user system to process to user's register、login、authorization authentication restful apis etc. and put these restful apis into one project. my means my business is small, i don't have plan to split auth server and resource server. do you have any projects or examples for details?

@jarlandre
Copy link

i was in the same boat as you but there is a lot of examples out there. For ex gin-server shows how to make a server that is both AS and RS: https://github.com/go-oauth2/gin-server/blob/master/examples/server.go in the test endpoint where it uses api.Use(ginserver.HandleTokenVerify()) to parse and validate the incoming token. Combine that with one of the store implementations listed in https://github.com/go-oauth2/oauth2#store-implements and you have a full implementation you can use for your project.

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

2 participants