summary refs log tree commit diff
path: root/synapse/api/auth/msc3861_delegated.py
diff options
context:
space:
mode:
authorQuentin Gliech <quenting@element.io>2025-01-21 13:48:49 +0100
committerGitHub <noreply@github.com>2025-01-21 13:48:49 +0100
commit048c1ac7f6cb3c05ac71fcbb73db49d9a32b1984 (patch)
tree6ffad47c8ead608992cd23f2c4dcd7734c2fbc4a /synapse/api/auth/msc3861_delegated.py
parentImplement MSC4133 to support custom profile fields. (#17488) (diff)
downloadsynapse-048c1ac7f6cb3c05ac71fcbb73db49d9a32b1984.tar.xz
Support the new `/auth_metadata` endpoint defined in MSC2965. (#18093)
See the updated MSC2965

---------

Co-authored-by: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com>
Diffstat (limited to 'synapse/api/auth/msc3861_delegated.py')
-rw-r--r--synapse/api/auth/msc3861_delegated.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/synapse/api/auth/msc3861_delegated.py b/synapse/api/auth/msc3861_delegated.py

index 53907c01d4..802ea51d18 100644 --- a/synapse/api/auth/msc3861_delegated.py +++ b/synapse/api/auth/msc3861_delegated.py
@@ -174,6 +174,12 @@ class MSC3861DelegatedAuth(BaseAuth): logger.warning("Failed to load metadata:", exc_info=True) return None + async def auth_metadata(self) -> Dict[str, Any]: + """ + Returns the auth metadata dict + """ + return await self._issuer_metadata.get() + async def _introspection_endpoint(self) -> str: """ Returns the introspection endpoint of the issuer