Environment-variable for openid-provider
Hello and sorry for my probably stupid question: How do I set up a custom auth-provider via environment-variables?
This is my setup:
environment: VIKUNJA_AUTH_LOCAL_ENABLED: 1 VIKUNJA_AUTH_OPENID_ENABLED: 1 # VIKUNJA_AUTH_OPENID_REDIRECTURL: VIKUNJA_AUTH_OPENID_PROVIDERS_NAME: "VIKUNJA" VIKUNJA_AUTH_OPENID_PROVIDERS_VIKUNJA_AUTHURL: "https://URL/application/o/vikunja/" VIKUNJA_AUTH_OPENID_PROVIDERS_VIKUNJA_CLIENTID: "CLIENTID" VIKUNJA_AUTH_OPENID_PROVIDERS_VIKUNJA_CLIENTSECRET: "CLIENSECRET"
I think you will need to do this as a json inside the
VIKUNJA_AUTH_OPENID_PROVIDERS variable since this is parsed by the configuration library and further parsed later on in a custom handler (but the custom handler is not able to extract those values further from ENV variables)
But if we get an answer here, we should definitely add this to the documentation.
Currently you can't configure an openid provider only with environment variables. You'll need to mount a config file for that.
This is caused by viper (the config library we're using) can't handle arrays with env variables.
Open for ideas how this should be possible to use.
Deleting a branch is permanent. It CANNOT be undone. Continue?