-
Notifications
You must be signed in to change notification settings - Fork 14
/
README.txt
55 lines (32 loc) · 1.46 KB
/
README.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
django-crowd
============
Simple Attlasian CROWD authentication backend for Django
Installation
============
pip install django-crowd
Also, to install development version you can try this:
pip install git+git://github.com/gbezyuk/django-crowd.git
Or this:
pip install -e git+git://github.com/gbezyuk/django-crowd.git#egg=Django-Crowd
You could also simply copy this repository crowd folder to your project.
Configuration:
==============
Put a CROWD configuration in your settings.py:
CROWD = {
'url': 'http://your.crowd.url:port/crowd/rest', # your CROWD rest API url
'app_name': 'your-registered-crowd-application-name', # appname, registered with CROWD
'password': 'application-password', # correct password for provided appname
'superuser': True, # if set makes CROWD-authorized users superusers;
# BE CAREFUL WITH THIS PARAMETER!
}
Also add 'crowd.CrowdBackend' in your AUTHENTICATION_BACKENDS settings list.
Better to put it last for minimal collision risk:
AUTHENTICATION_BACKENDS = (
# ...
'django.contrib.auth.backends.ModelBackend',
'crowd.backends.CrowdBackend'
)
Credits:
========
Originally written for Django v1.3 by Konstantin J. Volkov <[email protected]> at 12.07.2012
Refactored, put together and tested with Django v1.4 by Grigoriy Beziuk <[email protected]> at 27.08.2012