summary refs log tree commit diff
path: root/synapse/rest/client/v1/login.py
diff options
context:
space:
mode:
authorSteven Hammerton <steven.hammerton@openmarket.com>2015-11-11 14:26:47 +0000
committerSteven Hammerton <steven.hammerton@openmarket.com>2015-11-11 14:26:47 +0000
commitffdc8e5e1ccc4aab4b11f7da06c8695ba6b20111 (patch)
treefc9d1f67d5d054c0a0dd3d7790626a74f16fb0a6 /synapse/rest/client/v1/login.py
parentMinor review fixes (diff)
downloadsynapse-ffdc8e5e1ccc4aab4b11f7da06c8695ba6b20111.tar.xz
Snakes not camels
Diffstat (limited to 'synapse/rest/client/v1/login.py')
-rw-r--r--synapse/rest/client/v1/login.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/synapse/rest/client/v1/login.py b/synapse/rest/client/v1/login.py
index 78c542a94a..0171f6c018 100644
--- a/synapse/rest/client/v1/login.py
+++ b/synapse/rest/client/v1/login.py
@@ -295,14 +295,14 @@ class CasRedirectServlet(ClientV1RestServlet):
         args = request.args
         if "redirectUrl" not in args:
             return (400, "Redirect URL not specified for CAS auth")
-        clientRedirectUrlParam = urllib.urlencode({
+        client_redirect_url_param = urllib.urlencode({
             "redirectUrl": args["redirectUrl"][0]
         })
-        hsRedirectUrl = self.cas_service_url + "/_matrix/client/api/v1/login/cas/ticket"
-        serviceParam = urllib.urlencode({
-            "service": "%s?%s" % (hsRedirectUrl, clientRedirectUrlParam)
+        hs_redirect_url = self.cas_service_url + "/_matrix/client/api/v1/login/cas/ticket"
+        service_param = urllib.urlencode({
+            "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()