Support,
I have a client credential that I would like to make available to an environment variable
via a secret (ie: Using Azure) for my realm. Can Keycloak perform environment variable (ie: ${M2M_CLIENT_SECRET} substitution at runtime to
get the actual value?
NOTE: I have verified that I can print the value for the environment variable: M2M_CLIENT_SECRET (ie: using printenv) on Linux machine where Keycloak is runnning.
Here is a snippet from my realm settings:
{
“id”: “69f6642d-6370-4c56-925d-ce3e56e415b8”,
“clientId”: “user-client-m2m”,
“name”: “user-client-m2m”,
“description”: “”,
“rootUrl”: “”,
“adminUrl”: “”,
“baseUrl”: “”,
“surrogateAuthRequired”: false,
“enabled”: true,
“alwaysDisplayInConsole”: false,
“clientAuthenticatorType”: “client-secret”,
“secret”: “${M2M_CLIENT_SECRET}”,
“redirectUris”: [
“/*”
],
Please advise.
Thank you in advance.