go_oauth_client
A simple OAuth Client - Great for when you just need to verify an OAuth Server is working as expected.
Setup
go mod init brad.tumy/go_oauth_client
go mod tidy
Config
Rename the config.json-template file to config.json. Update the values in this file to correctly match your environment.
{
"port" : "9094",
"ClientID" : "c91f243c-9271-4a20-9c34-4b2d55xxxxx",
"ClientSecret" : "sRxXYwXrRtziGVn9uIFGPnnPWuxxxxx",
"Scopes" : "openid",
"RedirectURL" : "http://localhost:9094/oauth2",
"AuthURL" : "https://jarvis-dev.indykite.com/o/oauth2/auth",
"TokenURL" : "https://jarvis-dev.indykite.com/o/oauth2/token",
"state" : "abcdefghijklmnop"
}
Build
go build client.go
Startup
./client
Usage
http://localhost:port