go_oauth_client

command module
v0.0.0-...-b545e3b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 12, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

README

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

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL