1
0

Compare commits

...

3 Commits

Author SHA1 Message Date
Hugh Nimmo-Smith
e108de78d3 Changelog 2025-12-03 14:29:53 +00:00
Hugh Nimmo-Smith
6821bb22a6 Changelog 2025-12-03 14:26:49 +00:00
Hugh Nimmo-Smith
5becde67e1 Support for stable m.oauth UIA stage for MSC4312 2025-12-03 12:06:02 +00:00
3 changed files with 13 additions and 1 deletions

View File

@@ -0,0 +1 @@
Support for stable MSC4312 m.oauth UIA stage for resetting cross-signing identity with the OAuth 2.0 API.

View File

@@ -67,7 +67,8 @@ class AuthRestServlet(RestServlet):
if not session:
raise SynapseError(400, "No session supplied")
if stagetype == "org.matrix.cross_signing_reset":
# We support the unstable (`org.matrix.cross_signing_reset`) name from MSC4312 until enough clients have adopted the stable name (`m.oauth`).
if stagetype == "m.oauth" or stagetype == "org.matrix.cross_signing_reset":
if self.hs.config.mas.enabled:
assert isinstance(self.auth, MasDelegatedAuth)

View File

@@ -560,9 +560,14 @@ class SigningKeyUploadServlet(RestServlet):
{
"session": "dummy",
"flows": [
{"stages": ["m.oauth"]},
# The unstable name from MSC4312 should be supported until enough clients have adopted the stable (`m.oauth`) name:
{"stages": ["org.matrix.cross_signing_reset"]},
],
"params": {
"m.oauth": {
"url": url,
},
"org.matrix.cross_signing_reset": {
"url": url,
},
@@ -594,9 +599,14 @@ class SigningKeyUploadServlet(RestServlet):
{
"session": "dummy",
"flows": [
{"stages": ["m.oauth"]},
# The unstable name from MSC4312 should be supported until enough clients have adopted the stable (`m.oauth`) name:
{"stages": ["org.matrix.cross_signing_reset"]},
],
"params": {
"m.oauth": {
"url": url,
},
"org.matrix.cross_signing_reset": {
"url": url,
},