ctron / oidc-cli

A command line tool to work with OIDC tokens

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

OIDC CLI

crates.io GitHub release (latest SemVer) CI

A command line tool for working with OIDC

Installation

From source with cargo:

cargo install oidc-cli

A binary with cargo-binstall:

cargo binstall oidc-cli

Download a released binary: https://github.com/ctron/oidc-cli/releases

Example

Creating a new (confidential) client:

oidc create confidential my-client --issuer https://example.com/realm --client-id foo --client-secret bar

Creating a new (public) client:

oidc create public my-client --issuer https://example.com/realm --client-id foo

Then, get an access token:

oidc token my-client

Or combine it with e.g., HTTPie:

http example.com/api "Authorization:$(oidc token my-client --bearer)"

About

A command line tool to work with OIDC tokens

License:Apache License 2.0


Languages

Language:Rust 97.3%Language:Handlebars 2.7%