An example to use Gitea Oauth2 login
templates | ||
.gitignore | ||
main.go | ||
README.md |
Example for Gitea login
steps
- run your gitea on http://localhost:3000
- go to your settings and add an oauth2 application
- change
ClientID
andClientSecret
on themain.go
go build
and run the program- visit http://localhost:8000 on your webbrowser, first time you should be prompt to confirm the authorize
- and then you can redirect to your http://localhost:8000 and you can see your user name and email on your gitea instance.