aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUnknown <mko0815@googlemail.com>2012-03-23 17:06:43 +0100
committerUnknown <mko0815@googlemail.com>2012-03-23 17:06:43 +0100
commit1c972952ab7a47511b73355e22687ca88d0a8ef8 (patch)
tree66d2122f548ceb20a52073f56d9e1d924d5c7a69
parentabf791bd0f13416a09bb2d38e5d1f496d013bc03 (diff)
Inserted configuration example to readme.
-rw-r--r--README.md26
1 files changed, 26 insertions, 0 deletions
diff --git a/README.md b/README.md
index 9425010..32689c7 100644
--- a/README.md
+++ b/README.md
@@ -33,6 +33,32 @@ Dependencies
- just 'urllib2' with a little tweak from [VerifiedHTTPS](https://github.com/josephturnerjr/urllib2.VerifiedHTTPS)
to allow validation of https certificate.
+How to use it
+=============
+
+- Edit settings.py to add 'crowdrest' app to your list of apps
+
+- Adapt configuration settings for crowdrest in settings.py by adding
+
+ # whether you want to sync django users from Crowd attributes
+ AUTH_CROWD_ALWAYS_UPDATE_USER = True
+
+ # Django user will get staff flag when Crowd user is in given Crowd group
+ AUTH_CROWD_STAFF_GROUP = 'staff'
+
+ # Django user will get superuser flag when Crowd user is in given Crowd group
+ AUTH_CROWD_SUPERUSER_GROUP = 'superuser'
+
+ # crowdrest will use this username and password to connect to Crowd server
+ AUTH_CROWD_APPLICATION_USER = 'django'
+ AUTH_CROWD_APPLICATION_PASSWORD = 'django'
+
+ # URL to Crowd REST API
+ AUTH_CROWD_SERVER_REST_URI = 'http://127.0.0.1:8095/crowd/rest/usermanagement/latest'
+
+ # Use given certificate file to validate https connection to Crowd server
+ AUTH_CROWD_SERVER_TRUSTED_ROOT_CERTS_FILE = None
+
Problems ?
==========