mirror of
https://github.com/element-hq/synapse
synced 2024-09-12 03:35:10 +00:00
Snakes not camels
This commit is contained in:
parent
2b779af10f
commit
ffdc8e5e1c
1 changed files with 5 additions and 5 deletions
|
@ -295,14 +295,14 @@ class CasRedirectServlet(ClientV1RestServlet):
|
||||||
args = request.args
|
args = request.args
|
||||||
if "redirectUrl" not in args:
|
if "redirectUrl" not in args:
|
||||||
return (400, "Redirect URL not specified for CAS auth")
|
return (400, "Redirect URL not specified for CAS auth")
|
||||||
clientRedirectUrlParam = urllib.urlencode({
|
client_redirect_url_param = urllib.urlencode({
|
||||||
"redirectUrl": args["redirectUrl"][0]
|
"redirectUrl": args["redirectUrl"][0]
|
||||||
})
|
})
|
||||||
hsRedirectUrl = self.cas_service_url + "/_matrix/client/api/v1/login/cas/ticket"
|
hs_redirect_url = self.cas_service_url + "/_matrix/client/api/v1/login/cas/ticket"
|
||||||
serviceParam = urllib.urlencode({
|
service_param = urllib.urlencode({
|
||||||
"service": "%s?%s" % (hsRedirectUrl, clientRedirectUrlParam)
|
"service": "%s?%s" % (hs_redirect_url, client_redirect_url_param)
|
||||||
})
|
})
|
||||||
request.redirect("%s?%s" % (self.cas_server_url, serviceParam))
|
request.redirect("%s?%s" % (self.cas_server_url, service_param))
|
||||||
request.finish()
|
request.finish()
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue