Commit b553e6bf by Ed Crewe

finished test and got it working

parent 0b33f160
...@@ -33,7 +33,7 @@ except: ...@@ -33,7 +33,7 @@ except:
'password' : '', # password field name 'password' : '', # password field name
'submit' : 'Login' # login submit button '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): class TestCAS(unittest.TestCase):
""" A class for testing a CAS setup both for standard and proxy authentication """ """ A class for testing a CAS setup both for standard and proxy authentication """
...@@ -240,7 +240,7 @@ class TestCAS(unittest.TestCase): ...@@ -240,7 +240,7 @@ class TestCAS(unittest.TestCase):
def proxy4_login(self, pt): def proxy4_login(self, pt):
""" Use proxy ticket to login """ """ Use proxy ticket to login """
url_args = (CAS_SERVER_URL, APP_URL, pt) 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: try:
login = self.opener.open(url) login = self.opener.open(url)
except: 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