package
0.0.0-20240812080720-ac7507fab973
Repository: https://github.com/sunshibao/go-utils.git
Documentation: pkg.go.dev
# README
Go OAuth Example
Read the blog post here
This is an example node application that implements Githubs OAuth2 API.
In order to run the application:
- Register your new application on Github : https://github.com/settings/applications/new. In the "callback URL" field, enter "http://localhost:8080/oauth/redirect". Once you register, you will get a client ID and client secret.
- Replace the values of the
clientID
andclientSecret
variables in the main.go file and also the index.html file - Start the server by executing
go run main.go
- Navigate to http://localhost:8080 on your browser.
# Packages
No description provided by the author
# Structs
No description provided by the author