mirror of
https://mau.dev/maunium/synapse.git
synced 2024-12-14 12:03:50 +01:00
Serve CAS login over r0 (#5286)
This commit is contained in:
parent
30858ff461
commit
532b825ed9
2 changed files with 3 additions and 2 deletions
1
changelog.d/5286.feature
Normal file
1
changelog.d/5286.feature
Normal file
|
@ -0,0 +1 @@
|
|||
CAS login will now hit the r0 API, not the deprecated v1 one.
|
|
@ -386,7 +386,7 @@ class CasRedirectServlet(RestServlet):
|
|||
b"redirectUrl": args[b"redirectUrl"][0]
|
||||
}).encode('ascii')
|
||||
hs_redirect_url = (self.cas_service_url +
|
||||
b"/_matrix/client/api/v1/login/cas/ticket")
|
||||
b"/_matrix/client/r0/login/cas/ticket")
|
||||
service_param = urllib.parse.urlencode({
|
||||
b"service": b"%s?%s" % (hs_redirect_url, client_redirect_url_param)
|
||||
}).encode('ascii')
|
||||
|
@ -395,7 +395,7 @@ class CasRedirectServlet(RestServlet):
|
|||
|
||||
|
||||
class CasTicketServlet(ClientV1RestServlet):
|
||||
PATTERNS = client_path_patterns("/login/cas/ticket", releases=())
|
||||
PATTERNS = client_path_patterns("/login/cas/ticket")
|
||||
|
||||
def __init__(self, hs):
|
||||
super(CasTicketServlet, self).__init__(hs)
|
||||
|
|
Loading…
Reference in a new issue