summary refs log tree commit diff
diff options
context:
space:
mode:
authorQuentin Gliech <quentingliech@gmail.com>2021-11-18 15:21:00 +0100
committerPatrick Cloke <clokep@users.noreply.github.com>2023-05-30 09:43:06 -0400
commite82ec6d00819253d15d22a41ba3b75ad77dce98f (patch)
tree3999c628316c20b5ca4aeb8db0614cb560edc2d8
parentExpose the public keys used for client authentication on an endpoint (diff)
downloadsynapse-e82ec6d00819253d15d22a41ba3b75ad77dce98f.tar.xz
MSC2965: OIDC Provider discovery via well-known document
-rw-r--r--synapse/rest/well_known.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/synapse/rest/well_known.py b/synapse/rest/well_known.py
index e2174fdfea..fd3b17a5ad 100644
--- a/synapse/rest/well_known.py
+++ b/synapse/rest/well_known.py
@@ -44,6 +44,15 @@ class WellKnownBuilder:
                 "base_url": self._config.registration.default_identity_server
             }
 
+        if self._config.auth.oauth_delegation_enabled:
+            result["org.matrix.msc2965.authentication"] = {
+                "issuer": self._config.auth.oauth_delegation_issuer
+            }
+            if self._config.auth.oauth_delegation_account != "":
+                result["org.matrix.msc2965.authentication"][
+                    "account"
+                ] = self._config.auth.oauth_delegation_account
+
         if self._config.server.extra_well_known_client_content:
             for (
                 key,