Auth0 Home Blog Docs

OIDC Agent: cli tool to handle OIDC tokens


Here is a nifty cli tool for all your OIDC needs (cross platform). Perfect companion for debugging and developing new APIs. Automatically retain your tokens. (Handles refresh tokens).
Read more here

Example usage:

$ oidc-agent login \
  -p \
  --client-id login-app \
  --client-secret NotSoSecret \
  --callback-port 31337 \
  --extra-scope offline_access \
  --audience \
  -n my-app

Auth against your API using curl:

$ curl -H "$(oidc-agent get -n my-app --auth-header -o access_token)"