#oidc #bearer-token #cli

app oidc-cli

A command line tool to work with OIDC tokens

18 unstable releases (4 breaking)

Uses new Rust 2024

0.5.0 Mar 13, 2025
0.4.0 Dec 5, 2024
0.3.3 Jul 23, 2024
0.1.3 Mar 15, 2024

#70 in Authentication

Download history 58/week @ 2024-12-08 35/week @ 2024-12-15 1/week @ 2024-12-22 11/week @ 2025-01-05 30/week @ 2025-01-12 109/week @ 2025-01-19 68/week @ 2025-01-26 143/week @ 2025-02-02 91/week @ 2025-02-09 97/week @ 2025-02-16 144/week @ 2025-02-23 73/week @ 2025-03-02 202/week @ 2025-03-09 76/week @ 2025-03-16 83/week @ 2025-03-23

435 downloads per month

Apache-2.0

43KB
1K SLoC

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)"

Dependencies

~33–50MB
~1M SLoC