oidc-cli

Crates.iooidc-cli
lib.rsoidc-cli
version0.3.3
sourcesrc
created_at2024-03-13 13:48:03.987453
updated_at2024-07-23 10:21:05.776601
descriptionA command line tool to work with OIDC tokens
homepage
repositoryhttps://github.com/ctron/oidc-cli
max_upload_size
id1171695
size127,825
Jens Reimann (ctron)

documentation

README

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)"
Commit count: 51

cargo fmt