17 unstable releases (3 breaking)

0.4.1 Jan 24, 2025
0.4.0 Dec 5, 2024
0.3.3 Jul 23, 2024
0.2.1 Jun 5, 2024
0.1.3 Mar 15, 2024

#116 in Authentication

Download history 26/week @ 2024-10-19 22/week @ 2024-10-26 49/week @ 2024-11-02 52/week @ 2024-11-09 72/week @ 2024-11-16 34/week @ 2024-11-23 194/week @ 2024-11-30 62/week @ 2024-12-07 39/week @ 2024-12-14 1/week @ 2024-12-21 10/week @ 2025-01-04 30/week @ 2025-01-11 84/week @ 2025-01-18 91/week @ 2025-01-25 133/week @ 2025-02-01

342 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–49MB
~1M SLoC