oidc-cli-0.7.0 is not a library.
OIDC CLI
A command line tool for working with OIDC
Installation
From source with cargo:
A binary with cargo-binstall:
Download a released binary: https://github.com/ctron/oidc-cli/releases
On Windows, you can use winget:
With brew to you can:
Example
Creating a new (confidential) client:
Creating a new (public) client:
Then, get an access token:
Or combine it with e.g., HTTPie:
Or even shorter:
More examples
Create a public client from an initial refresh token. This can be useful if you have a frontend application, but no means of performing the authorization code flow with a local server. In case you have access to the refresh token, e.g via the browsers developer console, you can initialize the public client with that: