Describe the bug
I'm using vault 1.1.0-beta2 and I can't configure OIDC auth method, I have to say that I'm using my company certificate.
When I'm trying to configure OIDC auth method via the UI, I can fill oidc_discovery_url, upload the certificate, it works, but I find nowhere to put client_id and client_token.
To Reproduce
vault auth enable oidc
vault write auth/oidc/config \
oidc_discovery_url="url-of-my-provider" \
oidc_client_id="<client-id>", \
oidc_client_secret="<client-token>", \
oidc_discovery_ca_pem=''content of `cat my.pem` "
Environment:
Vault server configuration file(s):
storage "mysql" {
# mysql
address = "vault_mariadb"
database = "vault"
tls_ca_file = "/vault/certs/mariadb-server-cert.pem"
username = "db_user"
password = "db_pwd"
}
listener "tcp" {
# tcp
address = "0.0.0.0:8200"
tls_disable = "true"
}
cluster_name = ""
cache_size = "32000"
disable_cache = false
disable_mlock = true
disable_sealwrap = false
plugin_directory = ""
default_lease_ttl = "10h"
max_lease_ttl = "18h"
raw_storage_endpoint = false
ui = true
pid_file = ""
# High Availability Parameters
api_addr = ""
cluster_addr = ""
disable_clustering = false
Additional context
I'm trying to configure Keycloak as Open ID Connect provider for vault
@Leletir Can you please try a couple of things.
[email protected]openssl x509 -in my.pem -text@kalafut setting [email protected] works !!!
Thank you very much !!
@kalafut but why the @ ?
That's the CLI mechanism to reference the content of a file: https://www.vaultproject.io/docs/commands/#files
Oh okay 馃槄I miss this part ... Thank you very much !
I've seen you've added documentation about using Keycloak as an OIDC provider.
I'm trying to configure Keycloak as an OIDC provider, I think I still miss some something, each time I try to connect to Vault (via the UI), Vault is asking me for a token (It should redirect me to keyclaok login page isn't it ?)
If you've configured the role as OIDC, once you enter that role name in the UI, the token field should go away, and a login button will be shown which directs you to Keycloak.
Okay I don't have configured the role yet, that's the missing part.
Thank you for your help, there are still some concepts I don't understand, but I think it's because my lack of knowledge about OIDC (bound_audiences, user_claim, bound_claims, groups_claim)
Most helpful comment
@Leletir Can you please try a couple of things.
[email protected]openssl x509 -in my.pem -text