Skip to content

Latest commit

 

History

History
39 lines (27 loc) · 1.14 KB

README.adoc

File metadata and controls

39 lines (27 loc) · 1.14 KB

Build Status Go Report

OAuth2 Command Line Client

Simple cli command currently supporting OAuth2 grant types client_credentials and password.

Usage

$ oauth2-cli -h

Usage of oauth2-cli:

oauth2-cli [opts]

	oauth2-cli retrieves an OAuth2 access token using client or password grant

  -cid string
    	client id (default "foo")
  -cpw string
    	client secret (default "bar")
  -host string
    	authorization server url (default "http://localhost:9094/token")
  -typ string
    	grant type, can be client_credentials or password (default "client_credentials")
  -uid string
    	end user id (default "fizz")
  -upw string
    	end user secret (default "buzz")

Installation

Install Go

Install the binary into your current directory:

GOBIN=$(pwd) GOPATH=$(mktemp -d) go get github.com/seakayone/go-oauth2-cli