Custom oauth configs not created from env vars

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.

I have the same issue with my custom oauth provider, all works if you create from UI but if I try to set it up using environment variables on a fresh install it says unknown oauth provider, is it possible these days?