Crates.io | oidc-cli |
lib.rs | oidc-cli |
version | |
source | src |
created_at | 2024-03-13 13:48:03.987453 |
updated_at | 2024-12-05 08:36:23.099356 |
description | A command line tool to work with OIDC tokens |
homepage | |
repository | https://github.com/ctron/oidc-cli |
max_upload_size | |
id | 1171695 |
Cargo.toml error: | TOML parse error at line 19, column 1 | 19 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include` |
size | 0 |
A command line tool for working with OIDC
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
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)"