Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejs
themeMidnight
[ashtimmerman@ui-tier1 ~]$ export BEARER_TOKEN=$(oidc-token <client_name>)

and to inspect the content of the JWT, the jq tool can be used:

Code Block
languagejs
themeMidnight
[ashtimmermanus@ui-tier1 ~]$ oidc-token axy | jq -R 'split(".")[1] | @base64d | fromjson'

The token will be valid for 60 minutes. It , but a new token can be obtained a new token issuing the oidc-token command again.

At the end, stop oidc-agent daemon:

...

Code Block
languagejs
themeMidnight
[ashtimmermanus@ui-tier1 ~]$ oidc-add -a
The following account configurations are currently loaded: 
axy

To inspect the content of the JWT, you can use the jq tool:

Code Block
languagejs
themeMidnight
[ashtimmermanus@ui-tier1 ~]$ oidc-token axy | jq -R 'split(".")[1] | @base64d | fromjson'