Fix Authelia OIDC client secret syntax to use template filter
expand-env double-processes substituted values so $ in bcrypt hashes
get re-expanded. Switch back to template filter with {{ env "VAR" }}
syntax which returns values as-is.
This commit is contained in:
@@ -65,7 +65,7 @@ identity_providers:
|
|||||||
clients:
|
clients:
|
||||||
- client_id: open-webui
|
- client_id: open-webui
|
||||||
client_name: Open WebUI
|
client_name: Open WebUI
|
||||||
client_secret: '${AUTHELIA_OIDC_CLIENT_SECRET_OPEN_WEBUI}'
|
client_secret: '{{ env "AUTHELIA_OIDC_CLIENT_SECRET_OPEN_WEBUI" }}'
|
||||||
public: false
|
public: false
|
||||||
authorization_policy: one_factor
|
authorization_policy: one_factor
|
||||||
token_endpoint_auth_method: client_secret_post
|
token_endpoint_auth_method: client_secret_post
|
||||||
@@ -79,7 +79,7 @@ identity_providers:
|
|||||||
|
|
||||||
- client_id: linkding
|
- client_id: linkding
|
||||||
client_name: Linkding
|
client_name: Linkding
|
||||||
client_secret: '${AUTHELIA_OIDC_CLIENT_SECRET_LINKDING}'
|
client_secret: '{{ env "AUTHELIA_OIDC_CLIENT_SECRET_LINKDING" }}'
|
||||||
public: false
|
public: false
|
||||||
authorization_policy: one_factor
|
authorization_policy: one_factor
|
||||||
token_endpoint_auth_method: client_secret_post
|
token_endpoint_auth_method: client_secret_post
|
||||||
|
|||||||
@@ -13,8 +13,7 @@ services:
|
|||||||
- AUTHELIA_IDENTITY_PROVIDERS_OIDC_HMAC_SECRET=${AUTHELIA_IDENTITY_PROVIDERS_OIDC_HMAC_SECRET}
|
- AUTHELIA_IDENTITY_PROVIDERS_OIDC_HMAC_SECRET=${AUTHELIA_IDENTITY_PROVIDERS_OIDC_HMAC_SECRET}
|
||||||
- AUTHELIA_OIDC_CLIENT_SECRET_OPEN_WEBUI=${AUTHELIA_OIDC_CLIENT_SECRET_OPEN_WEBUI}
|
- AUTHELIA_OIDC_CLIENT_SECRET_OPEN_WEBUI=${AUTHELIA_OIDC_CLIENT_SECRET_OPEN_WEBUI}
|
||||||
- AUTHELIA_OIDC_CLIENT_SECRET_LINKDING=${AUTHELIA_OIDC_CLIENT_SECRET_LINKDING}
|
- AUTHELIA_OIDC_CLIENT_SECRET_LINKDING=${AUTHELIA_OIDC_CLIENT_SECRET_LINKDING}
|
||||||
# expand-env substitutes ${VAR} in config files; use template filter only if Go template syntax needed
|
- X_AUTHELIA_CONFIG_FILTERS=template
|
||||||
- X_AUTHELIA_CONFIG_FILTERS=expand-env
|
|
||||||
networks:
|
networks:
|
||||||
- npm-network
|
- npm-network
|
||||||
- authelia-internal
|
- authelia-internal
|
||||||
|
|||||||
Reference in New Issue
Block a user