summary refs log tree commit diff
diff options
context:
space:
mode:
authorQuentin Gliech <quenting@element.io>2024-07-08 13:27:44 +0200
committerQuentin Gliech <quenting@element.io>2024-07-08 13:27:44 +0200
commit2ff5321ef172f7f5b17f6ec001c0073c13eeee6b (patch)
tree33016d4cc9167f001a988860ce4bbb2c9f12d9a6
parentImport `cast` from `typing` instead of `typing_extensions`. (diff)
downloadsynapse-2ff5321ef172f7f5b17f6ec001c0073c13eeee6b.tar.xz
Fix loading the account management URL from the issuer
-rw-r--r--synapse/api/auth/msc3861_delegated.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/api/auth/msc3861_delegated.py b/synapse/api/auth/msc3861_delegated.py
index 92ad41dbab..cc55be40d8 100644
--- a/synapse/api/auth/msc3861_delegated.py
+++ b/synapse/api/auth/msc3861_delegated.py
@@ -175,7 +175,7 @@ class MSC3861DelegatedAuth(BaseAuth):
 
         try:
             metadata = await self._load_metadata()
-            return metadata.account_management_uri
+            return metadata.get("account_management_uri", None)
         # We don't want to raise here if we can't load the metadata
         except Exception:
             logger.warning("Failed to load metadata:", exc_info=True)