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
8ecadd84
Commit
8ecadd84
authored
Dec 09, 2010
by
Ed Crewe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add default to non proxied if no ticket
parent
4e64c503
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
django_cas/views.py
+2
-0
No files found.
django_cas/views.py
View file @
8ecadd84
...
@@ -50,6 +50,8 @@ def _login_url(service, ticket='ST'):
...
@@ -50,6 +50,8 @@ def _login_url(service, ticket='ST'):
params
=
{
'service'
:
service
}
params
=
{
'service'
:
service
}
if
settings
.
CAS_EXTRA_LOGIN_PARAMS
:
if
settings
.
CAS_EXTRA_LOGIN_PARAMS
:
params
.
update
(
settings
.
CAS_EXTRA_LOGIN_PARAMS
)
params
.
update
(
settings
.
CAS_EXTRA_LOGIN_PARAMS
)
if
not
ticket
:
ticket
=
'ST'
login
=
LOGINS
.
get
(
ticket
[:
2
],
'login'
)
login
=
LOGINS
.
get
(
ticket
[:
2
],
'login'
)
return
urljoin
(
settings
.
CAS_SERVER_URL
,
login
)
+
'?'
+
urlencode
(
params
)
return
urljoin
(
settings
.
CAS_SERVER_URL
,
login
)
+
'?'
+
urlencode
(
params
)
...
...
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