Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
oidc-token
command
Command oidc-token-cli mints and prints an OIDC token for a generic public client, using cached credentials and silent refresh where possible.
|
Command oidc-token-cli mints and prints an OIDC token for a generic public client, using cached credentials and silent refresh where possible. |
|
internal
|
|
|
authflow
Package authflow selects a grant type at runtime (auto|authcode|device-code) based on discovery metadata and the local environment, and runs the loopback callback server for the authorization-code flow.
|
Package authflow selects a grant type at runtime (auto|authcode|device-code) based on discovery metadata and the local environment, and runs the loopback callback server for the authorization-code flow. |
|
cache
Package cache persists tokens on disk, keyed by (issuer, client_id), with 0600/0700 permissions, atomic writes, and advisory file locking for concurrency-safe refresh.
|
Package cache persists tokens on disk, keyed by (issuer, client_id), with 0600/0700 permissions, atomic writes, and advisory file locking for concurrency-safe refresh. |
|
config
Package config parses CLI flags and optional config-file settings that describe an OIDC issuer, public client, and token request (issuer, client-id, scope, audience, grant-type, token-type, cache-dir, redirect).
|
Package config parses CLI flags and optional config-file settings that describe an OIDC issuer, public client, and token request (issuer, client-id, scope, audience, grant-type, token-type, cache-dir, redirect). |
|
oidc
Package oidc implements runtime OIDC discovery, id_token verification, authorization-code+PKCE, device-code, and refresh-token flows using golang.org/x/oauth2 and github.com/coreos/go-oidc/v3.
|
Package oidc implements runtime OIDC discovery, id_token verification, authorization-code+PKCE, device-code, and refresh-token flows using golang.org/x/oauth2 and github.com/coreos/go-oidc/v3. |
|
oidctest
Package oidctest provides a minimal, configurable OIDC issuer for tests (discovery, jwks, device authorization, and token endpoints backed by a real RSA-signed JWT), shared across internal/oidc and internal/authflow.
|
Package oidctest provides a minimal, configurable OIDC issuer for tests (discovery, jwks, device authorization, and token endpoints backed by a real RSA-signed JWT), shared across internal/oidc and internal/authflow. |
|
output
Package output renders the final token to stdout: bare token bytes, or an ExecCredential-style JSON document when requested.
|
Package output renders the final token to stdout: bare token bytes, or an ExecCredential-style JSON document when requested. |
|
runner
Package runner orchestrates the cache -> refresh (locked) -> interactive login pipeline and maps typed errors to process exit codes.
|
Package runner orchestrates the cache -> refresh (locked) -> interactive login pipeline and maps typed errors to process exit codes. |
Click to show internal directories.
Click to hide internal directories.