Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/seakayone/go-oauth2-cli
Simple OAuth2 command line client written in Go (golang)
https://github.com/seakayone/go-oauth2-cli
go golang oauth2 oauth2-client
Last synced: 22 days ago
JSON representation
Simple OAuth2 command line client written in Go (golang)
- Host: GitHub
- URL: https://github.com/seakayone/go-oauth2-cli
- Owner: seakayone
- License: apache-2.0
- Created: 2018-08-18T10:50:20.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-12-10T22:49:04.000Z (almost 5 years ago)
- Last Synced: 2024-10-01T17:07:03.004Z (about 1 month ago)
- Topics: go, golang, oauth2, oauth2-client
- Language: Go
- Size: 13.7 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.adoc
- License: LICENSE
Awesome Lists containing this project
README
image:https://travis-ci.org/seakayone/go-oauth2-cli.svg?branch=master["Build Status", link="https://travis-ci.org/seakayone/go-oauth2-cli"]
image:https://goreportcard.com/badge/github.com/seakayone/go-oauth2-cli["Go Report", link="https://goreportcard.com/report/github.com/seakayone/go-oauth2-cli"]= OAuth2 Command Line Client
Simple cli command currently supporting https://tools.ietf.org/html/rfc6749[OAuth2] grant types `client_credentials` and `password`.
= Usage
```
$ oauth2-cli -hUsage 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 https://golang.org/[Go]
Install the binary into your current directory:
GOBIN=$(pwd) GOPATH=$(mktemp -d) go get github.com/seakayone/go-oauth2-cli