package
module
Version:
v0.0.0-...-d7036f4
Opens a new window with list of versions in this module.
Published: Jun 25, 2021
License: MIT
Opens a new window with license information.
Imports: 13
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
go-oauth2-client-sample
Simple OAuth2 client implementation in Go. See following articles for details.
Requirements
How to build binary
make build
How to run
cp .env.sample .env
Edit .env with your CLIENT_ID and CLIENT_SECRET from Google APIs.
And then run the server.
source .env
make run
You can access to http://localhost:2345 with a web browser after executing the command.
Change PORT
on .env if you want to change listening port.
Documentation
¶
func NewServer(clientID, clientSecret string) *server
Source Files
¶
Directories
¶
cmd
|
|
|
|
Click to show internal directories.
Click to hide internal directories.