File: oidc-keychain.md

package info (click to toggle)
oidc-agent 4.2.6-1.1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 3,560 kB
  • sloc: ansic: 22,657; makefile: 711; sh: 494
file content (20 lines) | stat: -rw-r--r-- 787 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# oidc-keychain

We recommend usage of
[oidc-agent-service](../oidc-agent-service/oidc-agent-service.md) instead.

oidc-keychain enables re-using [`oidc-agent`](../oidc-agent/oidc-agent.md) between
login sessions.  It stores oidc-agent environment variables in a file
and takes care of starting oidc-agent when needed, loading any given
accounts when needed (using [`oidc-add`](../oidc-add/oidc-add.md)), and setting the
`OIDCD_PID` and `OIDC_SOCK` environment variables.  It is
commonly used inside `.bash_profile` or similar to start oidc-agent
when needed.

For example this line in `.bash_profile`
```
eval `oidc-keychain --accounts <shortname>`
```
will start oidc-agent when needed, load the <shortname> account if
it isn't already loaded, and set the oidc environment variables.