16 unstable releases (3 breaking)

0.4.0 Dec 5, 2024
0.3.3 Jul 23, 2024
0.2.1 Jun 5, 2024
0.2.0 May 27, 2024
0.1.3 Mar 15, 2024

#111 in Authentication

Download history 20/week @ 2024-09-12 33/week @ 2024-09-19 12/week @ 2024-09-26 3/week @ 2024-10-03 19/week @ 2024-10-10 21/week @ 2024-10-17 17/week @ 2024-10-24 40/week @ 2024-10-31 51/week @ 2024-11-07 60/week @ 2024-11-14 56/week @ 2024-11-21 44/week @ 2024-11-28 191/week @ 2024-12-05

367 downloads per month

Apache-2.0

41KB
990 lines

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