diff --git a/changelog.d/12727.doc b/changelog.d/12727.doc
new file mode 100644
index 0000000000000000000000000000000000000000..c41e50c85ba07ca0d89524a50a17d4abf0c4074d
--- /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 19cacaafefe007d2f95864528ece17401e7af9cf..e899db63d63bbcaf5b3a607e18f6fae038b89eb3 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"]