mirror of
https://github.com/element-hq/synapse.git
synced 2024-11-22 17:46:08 +03:00
Register the login redirect endpoint for v3. (#11451)
As specified for Matrix v1.1.
This commit is contained in:
parent
b9fef1a7cd
commit
a265fbd397
3 changed files with 4 additions and 3 deletions
1
changelog.d/11451.bugfix
Normal file
1
changelog.d/11451.bugfix
Normal file
|
@ -0,0 +1 @@
|
|||
Add support for the `/_matrix/client/v3/login/sso/redirect/{idpId}` API from Matrix v1.1. This endpoint was overlooked when support for v3 endpoints was added in v1.48.0rc1.
|
|
@ -513,7 +513,7 @@ class SsoRedirectServlet(RestServlet):
|
|||
re.compile(
|
||||
"^"
|
||||
+ CLIENT_API_PREFIX
|
||||
+ "/r0/login/sso/redirect/(?P<idp_id>[A-Za-z0-9_.~-]+)$"
|
||||
+ "/(r0|v3)/login/sso/redirect/(?P<idp_id>[A-Za-z0-9_.~-]+)$"
|
||||
)
|
||||
]
|
||||
|
||||
|
|
|
@ -1138,12 +1138,12 @@ class RoomSpaceSummaryRestServlet(RestServlet):
|
|||
|
||||
|
||||
class RoomHierarchyRestServlet(RestServlet):
|
||||
PATTERNS = [
|
||||
PATTERNS = (
|
||||
re.compile(
|
||||
"^/_matrix/client/(v1|unstable/org.matrix.msc2946)"
|
||||
"/rooms/(?P<room_id>[^/]*)/hierarchy$"
|
||||
),
|
||||
]
|
||||
)
|
||||
|
||||
def __init__(self, hs: "HomeServer"):
|
||||
super().__init__()
|
||||
|
|
Loading…
Reference in a new issue