Commit b553e6bf by Ed Crewe

finished test and got it working

parent 0b33f160
......@@ -33,7 +33,7 @@ except:
'password' : '', # password field name
'submit' : 'Login' # login submit button
}
SCRIPT = 'manage.py shell --plain < get_pgt.py'
SCRIPT = 'manage.py shell --plain < get_pgt.py' # A script to extract the PGT from your proxying server
class TestCAS(unittest.TestCase):
""" A class for testing a CAS setup both for standard and proxy authentication """
......@@ -240,7 +240,7 @@ class TestCAS(unittest.TestCase):
def proxy4_login(self, pt):
""" Use proxy ticket to login """
url_args = (CAS_SERVER_URL, APP_URL, pt)
url = '%s/proxyValidate?targetService=%s&ticket=%s' % url_args
url = '%s/proxyValidate?service=%s&ticket=%s' % url_args
try:
login = self.opener.open(url)
except:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment