Thanks to visit codestin.com
Credit goes to Github.com

Skip to content

jentz/oidc-cli

Repository files navigation

oidc-cli 🚀

Go Report Card GitHub release License GitHub Downloads

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

Demo GIF

Usage 🛠️

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 💾

  • 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@latest

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

Run ▶️

go run ./ 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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 6

Languages