15 releases

new 0.3.3 Jul 23, 2024
0.3.2 Jul 17, 2024
0.2.1 Jun 5, 2024
0.2.0 May 27, 2024
0.1.3 Mar 15, 2024

#48 in Authentication

Download history 34/week @ 2024-04-01 470/week @ 2024-04-22 6/week @ 2024-04-29 151/week @ 2024-05-20 150/week @ 2024-05-27 143/week @ 2024-06-03 11/week @ 2024-06-10 2/week @ 2024-06-17 121/week @ 2024-07-08 235/week @ 2024-07-15

356 downloads per month

Apache-2.0

38KB
936 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

~30–49MB
~1M SLoC