summary refs log tree commit diff
path: root/synapse/config/experimental.py
diff options
context:
space:
mode:
authorQuentin Gliech <quenting@element.io>2024-07-08 14:08:11 +0200
committerGitHub <noreply@github.com>2024-07-08 14:08:11 +0200
commitc896030f679ad4987df015970a0c55aa4ffe8466 (patch)
tree5c2321fa8e2eb0a2c591b66b5c62492cdf963c6c /synapse/config/experimental.py
parentBump certifi from 2023.7.22 to 2024.7.4 (#17404) (diff)
downloadsynapse-c896030f679ad4987df015970a0c55aa4ffe8466.tar.xz
MSC3861: allow overriding the introspection endpoint (#17406)
This makes it easier to go through an internal endpoint instead of the
public facing URL when introspecting tokens, reducing latency.
Diffstat (limited to 'synapse/config/experimental.py')
-rw-r--r--synapse/config/experimental.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/synapse/config/experimental.py b/synapse/config/experimental.py
index c21b7eb37e..bae9cc8047 100644
--- a/synapse/config/experimental.py
+++ b/synapse/config/experimental.py
@@ -140,6 +140,12 @@ class MSC3861:
                 ("experimental", "msc3861", "client_auth_method"),
             )
 
+    introspection_endpoint: Optional[str] = attr.ib(
+        default=None,
+        validator=attr.validators.optional(attr.validators.instance_of(str)),
+    )
+    """The URL of the introspection endpoint used to validate access tokens."""
+
     account_management_url: Optional[str] = attr.ib(
         default=None,
         validator=attr.validators.optional(attr.validators.instance_of(str)),