command
module
Version:
v0.0.0-...-286ce8e
Opens a new window with list of versions in this module.
Published: May 31, 2024
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
github oauth
A simple example of the use of github oauth for the Go language
How to run?
-
Read the github doc for create an Oauth app
-
Set Homepage URL to http://localhost:8080/, Set Authorization callback URL to http://localhost:8080/oauth/redirect when create Oauth app
-
Get Client ID and Client Secret
-
Populate them into dev_env or config.json
- NOTE:
RedirectURL = Authorization callback URL (http://localhost:8080/oauth/redirect)
- if
dev_env and config.json simultaneously exist, dev_env data will overwrite of config.json
-
Open you terminal, execute the following code in order:
go get -v ./...
# Can be ignored if using config.json
source dev_env
go run main.go
-
Now you can do something in localhost:8080
Documentation
¶
There is no documentation for this package.
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.