From c9fc2c0d2260b4e77eda31a7a4a15b073d539db2 Mon Sep 17 00:00:00 2001
From: Niklas <hello@niklashanft.com>
Date: Fri, 13 May 2022 12:15:51 +0200
Subject: [PATCH] Update issuer URL in example OIDC Keycloak config (#12727)

* Update openid.md

Newer versions of keycloak returning a 404 when using the `/auth` prefix.

Related: https://github.com/matrix-org/synapse/issues/12714
---
 changelog.d/12727.doc | 1 +
 docs/openid.md        | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)
 create mode 100644 changelog.d/12727.doc

diff --git a/changelog.d/12727.doc b/changelog.d/12727.doc
new file mode 100644
index 0000000000..c41e50c85b
--- /dev/null
+++ b/changelog.d/12727.doc
@@ -0,0 +1 @@
+Update the OpenID Connect example for Keycloak to be compatible with newer versions of Keycloak. Contributed by @nhh.
diff --git a/docs/openid.md b/docs/openid.md
index 19cacaafef..e899db63d6 100644
--- a/docs/openid.md
+++ b/docs/openid.md
@@ -159,7 +159,7 @@ Follow the [Getting Started Guide](https://www.keycloak.org/getting-started) to
 oidc_providers:
   - idp_id: keycloak
     idp_name: "My KeyCloak server"
-    issuer: "https://127.0.0.1:8443/auth/realms/{realm_name}"
+    issuer: "https://127.0.0.1:8443/realms/{realm_name}"
     client_id: "synapse"
     client_secret: "copy secret generated from above"
     scopes: ["openid", "profile"]
-- 
GitLab