We have enabled and configured the OIDC auth method for Vault. We can successfully login via the UI but are having issues logging in via the CLI.
$ vault login -method=oidc role=google
Unknown auth method: oidc. Use "vault auth list" to see the complete list of
auth methods. Additionally, some auth methods are only available via the HTTP
API.
$ vault auth list
Path Type Accessor Description
---- ---- -------- -----------
oidc/ oidc auth_oidc_d9627ab1 n/a
token/ token auth_token_d1d965f7 token based credentials
$ env | grep -i vault
VAULT_ADDR=https://vault.foo.com