From 8f2e9e03a2ef0cc3379b4af3edd4b50e45cddca4 Mon Sep 17 00:00:00 2001 From: Slavi Pantaleev Date: Mon, 21 Oct 2024 09:13:14 +0300 Subject: [PATCH] Use raw/endraw around templated strings in matrix_authentication_service_config_upstream_oauth2_providers sample config Fixes https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/3645 --- .../configuring-playbook-matrix-authentication-service.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/configuring-playbook-matrix-authentication-service.md b/docs/configuring-playbook-matrix-authentication-service.md index 9fd2620a1..939aaf35e 100644 --- a/docs/configuring-playbook-matrix-authentication-service.md +++ b/docs/configuring-playbook-matrix-authentication-service.md @@ -229,21 +229,21 @@ matrix_authentication_service_config_upstream_oauth2_providers: # By default it uses the `sub` claim as per the OIDC spec, # which should fit most use cases. subject: - #template: "{{ user.sub }}" + #template: "{% raw %}{{ user.sub }}{% endraw %}" # The localpart is the local part of the user's Matrix ID. # For example, on the `example.com` server, if the localpart is `alice`, # the user's Matrix ID will be `@alice:example.com`. localpart: #action: force - #template: "{{ user.preferred_username }}" + #template: "{% raw %}{{ user.preferred_username }}{% endraw %}" # The display name is the user's display name. displayname: #action: suggest - #template: "{{ user.name }}" + #template: "{% raw %}{{ user.name }}{% endraw %}" # An email address to import. email: #action: suggest - #template: "{{ user.email }}" + #template: "{% raw %}{{ user.email }}{% endraw %}" # Whether the email address must be marked as verified. # Possible values are: # - `import`: mark the email address as verified if the upstream provider