Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
django-cas
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
django-cas
Commits
b553e6bf
Commit
b553e6bf
authored
Dec 03, 2010
by
Ed Crewe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
finished test and got it working
parent
0b33f160
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
django_cas/tests/cas_tests.py
+2
-2
No files found.
django_cas/tests/cas_tests.py
View file @
b553e6bf
...
...
@@ -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?
targetS
ervice=
%
s&ticket=
%
s'
%
url_args
url
=
'
%
s/proxyValidate?
s
ervice=
%
s&ticket=
%
s'
%
url_args
try
:
login
=
self
.
opener
.
open
(
url
)
except
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment