mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-10-01 08:25:44 -04:00
Serve CAS login over r0 (#5286)
This commit is contained in:
parent
30858ff461
commit
532b825ed9
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 New Issue
Block a user