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
0ad79ebf
Commit
0ad79ebf
authored
Sep 22, 2008
by
Brodie Rao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added CAS_EXTRA_LOGIN_PARAMS setting
parent
e9c531b0
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
0 deletions
+9
-0
NEWS.txt
+4
-0
README.txt
+2
-0
django_cas/__init__.py
+1
-0
django_cas/views.py
+2
-0
No files found.
NEWS.txt
View file @
0ad79ebf
= Release Notes =
= Release Notes =
== Version 2.0.3 ==
* Added `CAS_EXTRA_LOGIN_PARAMS` setting (patched contributed by frasern).
== Version 2.0.2 ==
== Version 2.0.2 ==
* Added support for Django 1.0.
* Added support for Django 1.0.
...
...
README.txt
View file @
0ad79ebf
...
@@ -47,6 +47,8 @@ Optional settings include:
...
@@ -47,6 +47,8 @@ Optional settings include:
* `CAS_ADMIN_PREFIX`: The URL prefix of the Django administration site.
* `CAS_ADMIN_PREFIX`: The URL prefix of the Django administration site.
If undefined, the CAS middleware will check the view being rendered to
If undefined, the CAS middleware will check the view being rendered to
see if it lives in `django.contrib.admin.views`.
see if it lives in `django.contrib.admin.views`.
* `CAS_EXTRA_LOGIN_PARAMS`: Extra URL parameters to add to the login URL
when redirecting the user.
* `CAS_IGNORE_REFERER`: If `True`, logging out of the application will
* `CAS_IGNORE_REFERER`: If `True`, logging out of the application will
always send the user to the URL specified by `CAS_REDIRECT_URL`.
always send the user to the URL specified by `CAS_REDIRECT_URL`.
* `CAS_LOGOUT_COMPLETELY`: If `False`, logging out of the application
* `CAS_LOGOUT_COMPLETELY`: If `False`, logging out of the application
...
...
django_cas/__init__.py
View file @
0ad79ebf
...
@@ -6,6 +6,7 @@ __all__ = []
...
@@ -6,6 +6,7 @@ __all__ = []
_DEFAULTS
=
{
_DEFAULTS
=
{
'CAS_ADMIN_PREFIX'
:
None
,
'CAS_ADMIN_PREFIX'
:
None
,
'CAS_EXTRA_LOGIN_PARAMS'
:
None
,
'CAS_IGNORE_REFERER'
:
False
,
'CAS_IGNORE_REFERER'
:
False
,
'CAS_LOGOUT_COMPLETELY'
:
True
,
'CAS_LOGOUT_COMPLETELY'
:
True
,
'CAS_REDIRECT_URL'
:
'/'
,
'CAS_REDIRECT_URL'
:
'/'
,
...
...
django_cas/views.py
View file @
0ad79ebf
...
@@ -46,6 +46,8 @@ def _login_url(service):
...
@@ -46,6 +46,8 @@ def _login_url(service):
"""Generates CAS login URL"""
"""Generates CAS login URL"""
params
=
{
'service'
:
service
}
params
=
{
'service'
:
service
}
if
settings
.
CAS_EXTRA_LOGIN_PARAMS
:
params
.
update
(
settings
.
CAS_EXTRA_LOGIN_PARAMS
)
url
=
urljoin
(
settings
.
CAS_SERVER_URL
,
'login'
)
+
'?'
+
urlencode
(
params
)
url
=
urljoin
(
settings
.
CAS_SERVER_URL
,
'login'
)
+
'?'
+
urlencode
(
params
)
return
url
return
url
...
...
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