jentz / vigilant-dollop

Command-line OIDC client, get a token without all the fuss

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

vigilant-dollop

Command-line OIDC client, get a token without all the fuss

Usage

oidc-cli is a command-line OIDC client, get a token without all the fuss

Usage:
  oidc-cli [flags] <command> [command-flags]

Commands:
  authorization_code: Uses the authorization code flow to get a token response
  client_credentials: Uses the client credentials flow to get a token response
  help              : Prints help

Flags:

Run `oidc-cli <command> -h` to get help for a specific command

Installing

Installing with homebrew

 brew tap jentz/vigilant-dollop
 brew install oidc-cli

You can also download a suitable release for your platform from the releases page.

Run

go run ./cmd authorization_code --authorization-url <authorization-url> --token-url <token-url> --client-id <client-id> --client-secret <client-secret> --scopes "openid profile"

Test

go test -v ./...

Build

 go build -v -o oidc-cli ./cmd/**

About

Command-line OIDC client, get a token without all the fuss

License:MIT License


Languages

Language:Go 100.0%