8 releases

0.1.7 Apr 24, 2024
0.1.6 Apr 22, 2024
0.1.3 Mar 15, 2024

#70 in Authentication

Download history 168/week @ 2024-03-08 156/week @ 2024-03-15 8/week @ 2024-03-22 29/week @ 2024-03-29 5/week @ 2024-04-05 418/week @ 2024-04-19 56/week @ 2024-04-26 2/week @ 2024-05-03

476 downloads per month

Apache-2.0

33KB
769 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–45MB
~1M SLoC