Skip to content

How to set the client_secret in kratos.yml for an OIDC provider? #1186

Answered by vinckr
johanforssell asked this question in Q&A
Discussion options

You must be logged in to vote

Nested paths get mapped to config values by putting an underscore _ between every level, e.g. selfservice.flows.settings.ui_url becomes SELFSERVICE_FLOWS_SETTINGS_UI_URL=.
from configuring

but I am not sure how to do it in this case, maybe you have to pass the whole array like
SELFSERVICE_METHODS_OIDC_CONFIG_PROVIDERS={id: google, client_secret:...}

Just write it in your kratos.yml configuration, that should be the best option.

This is the library we use to read env, yaml ect.: https://github.com/knadh/koanf.
Maybe you can find some answers there.

Would love to find this out for you, but it will take a bit probably.

Replies: 1 comment 9 replies

Comment options

You must be logged in to vote
9 replies
@vinckr
Comment options

@oscarsilver
Comment options

@willemruys
Comment options

@vinckr
Comment options

@willemruys
Comment options

Answer selected by vinckr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
6 participants