diff options
author | Unknown <mko0815@googlemail.com> | 2012-03-23 17:06:43 +0100 |
---|---|---|
committer | Unknown <mko0815@googlemail.com> | 2012-03-23 17:06:43 +0100 |
commit | 1c972952ab7a47511b73355e22687ca88d0a8ef8 (patch) | |
tree | 66d2122f548ceb20a52073f56d9e1d924d5c7a69 | |
parent | abf791bd0f13416a09bb2d38e5d1f496d013bc03 (diff) |
Inserted configuration example to readme.
-rw-r--r-- | README.md | 26 |
1 files changed, 26 insertions, 0 deletions
@@ -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 ?
==========
|