Add OIDC login with role selection to vcm #4
Reference in New Issue
Block a user
Delete Branch "benvin/vcm-oidc"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
vcm only supports password and token logins, so Vaults fronted by OIDC need the vault CLI. Per-context roles also let one Vault carry several contexts, one per OIDC role.
method: oidcwith the vault CLI browser flow, including form_post (loopback-only callback, default localhost:8250, 2m timeout)roleandoidc_listen, with--role/--listenlogin overridesoidcto--methodcompletion, docs and example configcode,state,client_nonce) in the error, which goes to stderr and back to the browser page via line 67 → build a URL-free error for the callback exchange (e.g. strip the query or wrap with a fixed message).--listen :8250/0.0.0.0:8250binds every interface and producesredirect_uri=http://:8250/...→ reject a listen address whose host is empty or not loopback.oidc_response_mode=form_postfail with "missing code or state" (upstream cli.go handles the POST callback) → support the POST callback, or drop "the same flow asvault login -method=oidc" at docs/vcm.md:92 and document query mode only.No findings.