From 61aae18d4533d8196fdc9130598331833f3d9c2a Mon Sep 17 00:00:00 2001
From: IronTooch <27360514+IronTooch@users.noreply.github.com>
Date: Fri, 25 Mar 2022 08:40:10 -0400
Subject: [PATCH] Authentik OpenID minor doc update (#12275)

---
 changelog.d/12275.doc | 1 +
 docs/openid.md        | 4 +++-
 2 files changed, 4 insertions(+), 1 deletion(-)
 create mode 100644 changelog.d/12275.doc

diff --git a/changelog.d/12275.doc b/changelog.d/12275.doc
new file mode 100644
index 0000000000..2e26ad21eb
--- /dev/null
+++ b/changelog.d/12275.doc
@@ -0,0 +1 @@
+Corrected Authentik OpenID typo, added helpful note for troubleshooting. Contributed by @IronTooch.
diff --git a/docs/openid.md b/docs/openid.md
index 171ea3b712..19cacaafef 100644
--- a/docs/openid.md
+++ b/docs/openid.md
@@ -225,6 +225,8 @@ oidc_providers:
 3. Create an application for synapse in Authentik and link it to the provider.
 4. Note the slug of your application, Client ID and Client Secret.
 
+Note: RSA keys must be used for signing for Authentik, ECC keys do not work.
+
 Synapse config:
 ```yaml
 oidc_providers:
@@ -240,7 +242,7 @@ oidc_providers:
       - "email"
     user_mapping_provider:
       config:
-        localpart_template: "{{ user.preferred_username }}}"
+        localpart_template: "{{ user.preferred_username }}"
         display_name_template: "{{ user.preferred_username|capitalize }}" # TO BE FILLED: If your users have names in Authentik and you want those in Synapse, this should be replaced with user.name|capitalize.
 ```
 
-- 
GitLab