Custom oauth configs not created from env vars


#1

I’m installing rocket chat via helm. I’ve specified a load of settings as environment variables to configure keycloak as an oauth provider, e.g.:

Accounts_OAuth_Custom-Keycloak: true
Accounts_OAuth_Custom-Keycloak-url: https://example.com/

When I log into rocketchat, no custom oauth config exists. However, as soon as I create one called ‘Keycloak’, then I find it’s been populated with all the values I set. At that point I also have logging in with keycloak as an option on the log in screen.

It seems rocket chat is picking up the env vars, but is just missing the logic to automatically create the custom auth provider during installation.

How can I programmatically create the custom oauth entry, or is this just a bug? Thanks.