You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+19-6Lines changed: 19 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
CAS client for Django. This library requires Django 1.5 or above, and Python 2.6, 2.7, 3.4
4
4
5
-
Current version: 1.1.1
5
+
Current version: 1.2.0
6
6
7
7
This is [K-State's fork](https://github.com/kstateome/django-cas) of [the original](https://bitbucket.org/cpcc/django-cas/overview) and includes [several additional features](https://github.com/kstateome/django-cas/#additional-features) as well as features merged from
8
8
@@ -14,9 +14,9 @@ This is [K-State's fork](https://github.com/kstateome/django-cas) of [the or
14
14
15
15
This project is registered on PyPi as django-cas-client. To install::
16
16
17
-
pip install django-cas-client==1.1.1
18
-
19
-
17
+
pip install django-cas-client==1.2.0
18
+
19
+
20
20
### Add to URLs
21
21
22
22
Add the login and logout patterns to your main URLS conf.
@@ -34,9 +34,9 @@ Set your CAS server URL
34
34
Add cas to middleware classes
35
35
36
36
'cas.middleware.CASMiddleware',
37
-
38
37
39
-
### Add authentication backends
38
+
39
+
### Add authentication backends
40
40
41
41
AUTHENTICATION_BACKENDS = (
42
42
'django.contrib.auth.backends.ModelBackend',
@@ -138,8 +138,21 @@ Then, add the ``gateway`` decorator to a view:
138
138
To show a custom forbidden page, set ``CAS_CUSTOM_FORBIDDEN`` to a ``path.to.some_view``. Otherwise,
139
139
a generic ``HttpResponseForbidden`` will be returned.
140
140
141
+
## Require SSL Login
142
+
143
+
To force the service url to always target HTTPS, set ``CAS_FORCE_SSL_SERVICE_URL`` to ``True``.
144
+
145
+
## Automatically Create Users on First Login
146
+
147
+
By default, a stub user record will be created on the first successful CAS authentication
148
+
using the username in the response. If this behavior is not desired set
0 commit comments