Command-line OIDC client, get a token without all the fuss
oidc-cli: is a command-line OIDC client
Usage:
oidc-cli [global-flags] <command> [command-flags]
Commands:
authorization_code: Use the Authorization Code flow to obtain tokens.
client_credentials: Use the Client Credentials flow to obtain tokens.
introspect : Validate a token and retrieve associated claims.
token_refresh : Exchange a refresh token for new tokens.
version : Display the current version of oidc-cli.
help : Show help for oidc-cli or a specific command.
Flags:
Run `oidc-cli <command> -h` to get help for a specific command- Installing with homebrew 🍺
brew tap jentz/oidc-cli
brew install --cask oidc-cli- Installing with scoop 🥄
scoop bucket add oidc-cli https://github.com/jentz/scoop-oidc-cli
scoop install oidc-cli- Installing with go get
# NOTE: The dev version will be in effect!
go install github.com/jentz/oidc-cli@latestYou can also download a suitable release for your platform from the releases page.
go run ./ authorization_code --authorization-url <authorization-url> --token-url <token-url> --client-id <client-id> --client-secret <client-secret> --scopes "openid profile"go test -v ./... go build -v -o oidc-cli