summary refs log tree commit diff
path: root/synapse/config/experimental.py
diff options
context:
space:
mode:
authorQuentin Gliech <quenting@element.io>2023-04-04 18:11:17 +0200
committerPatrick Cloke <clokep@users.noreply.github.com>2023-05-30 09:43:06 -0400
commitc008b44b4f7bb3604be77709c62e6ec78389f8ed (patch)
treec15b16ffbff06366b445c419a31b1e653fe71f98 /synapse/config/experimental.py
parentTests for JWKS endpoint (diff)
downloadsynapse-c008b44b4f7bb3604be77709c62e6ec78389f8ed.tar.xz
Add an admin token for MAS -> Synapse calls
Diffstat (limited to 'synapse/config/experimental.py')
-rw-r--r--synapse/config/experimental.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/synapse/config/experimental.py b/synapse/config/experimental.py

index b9607975f9..d4dff22b0b 100644 --- a/synapse/config/experimental.py +++ b/synapse/config/experimental.py
@@ -136,6 +136,15 @@ class MSC3861: ) """The URL of the My Account page on the OIDC Provider as per MSC2965.""" + admin_token: Optional[str] = attr.ib( + default=None, + validator=attr.validators.optional(attr.validators.instance_of(str)), + ) + """ + A token that should be considered as an admin token. + This is used by the OIDC provider, to make admin calls to Synapse. + """ + def check_config_conflicts(self, root: RootConfig) -> None: """Checks for any configuration conflicts with other parts of Synapse.