#oidc #token #cli #bearer

app oidc-cli

A command line tool to work with OIDC tokens

19 releases

Uses new Rust 2024

new 0.5.1 Apr 30, 2025
0.5.0 Mar 13, 2025
0.4.1 Jan 24, 2025
0.4.0 Dec 5, 2024
0.1.3 Mar 15, 2024

#116 in Authentication

Download history 31/week @ 2025-01-10 16/week @ 2025-01-17 151/week @ 2025-01-24 130/week @ 2025-01-31 102/week @ 2025-02-07 103/week @ 2025-02-14 141/week @ 2025-02-21 68/week @ 2025-02-28 162/week @ 2025-03-07 114/week @ 2025-03-14 97/week @ 2025-03-21 84/week @ 2025-03-28 83/week @ 2025-04-04 49/week @ 2025-04-11 23/week @ 2025-04-18 139/week @ 2025-04-25

311 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

~32–48MB
~1M SLoC