diff mbox

[Branch,~linaro-validation/lava-server/trunk] Rev 410: Add template configuration for Atlassian Crowd authentication support.

Message ID 20130722114520.702.86633.launchpad@ackee.canonical.com
State Accepted
Headers show

Commit Message

Paul Sokolovsky July 22, 2013, 11:45 a.m. UTC
------------------------------------------------------------
revno: 410
committer: Paul Sokolovsky <paul.sokolovsky@linaro.org>
branch nick: lava-server.crowd2
timestamp: Thu 2013-07-11 12:26:54 +0100
message:
  Add template configuration for Atlassian Crowd authentication support.
  
  None of of the settings are enabled by default, because most people don't
  need Crowd auth and they will only complicate "pristine" install. For Linaro
  LAVA Lab, settings are expected to be handled on the level of buildout.cfg
  and Salt.
modified:
  lava_server/settings/common.py
  setup.py


--
lp:lava-server
https://code.launchpad.net/~linaro-validation/lava-server/trunk

You are subscribed to branch lp:lava-server.
To unsubscribe from this branch go to https://code.launchpad.net/~linaro-validation/lava-server/trunk/+edit-subscription
diff mbox

Patch

=== modified file 'lava_server/settings/common.py'
--- lava_server/settings/common.py	2012-09-20 20:56:45 +0000
+++ lava_server/settings/common.py	2013-07-11 11:26:54 +0000
@@ -120,6 +120,8 @@ 
     'linaro_django_xmlrpc',
     'lava_markitup',  # Support app for MarkItUp in LAVA
     'south',
+    # Uncomment to enable Atlassian Crowd auth support.
+    #'crowdrest',
 ]
 
 try:
@@ -141,6 +143,9 @@ 
 
 
 AUTHENTICATION_BACKENDS = (
+    # Uncomment CrowdRestBackend and comment OpenIDBackend to enable
+    # Atlassian Crowd auth.
+    #'crowdrest.backend.CrowdRestBackend',
     'django_openid_auth.auth.OpenIDBackend',
     'django.contrib.auth.backends.ModelBackend',
 )
@@ -154,6 +159,13 @@ 
 from openid import oidutil
 oidutil.log = lambda msg, level=0: None
 
+# Configuration settings for crowdrest.backend.CrowdRestBackend
+# Alternatively, can be set in production config for particular installed
+# instance.
+#AUTH_CROWD_APPLICATION_USER = 'appname'
+#AUTH_CROWD_APPLICATION_PASSWORD = 'apppass'
+#AUTH_CROWD_SERVER_REST_URI = 'https://crowd-server/crowd/rest/usermanagement/1'
+
 RESTRUCTUREDTEXT_FILTER_SETTINGS = {"initial_header_level": 4}
 
 # Skip south tests as they seem to break everything else.

=== modified file 'setup.py'
--- setup.py	2013-01-14 21:26:37 +0000
+++ setup.py	2013-07-11 11:26:54 +0000
@@ -73,6 +73,10 @@ 
         'south >= 0.7.3',
         'versiontools >= 1.8',
         'markdown >= 2.0.3',
+        # Disabled by default, as most people don't need
+        # Atlassian Crowd auth. Handled on the level of
+        # buildout.cfg instead.
+        #'django-crowd-rest-backend >= 0.3',
     ],
     setup_requires=[
         'versiontools >= 1.8',