From 0245d412ce8f3a31b384b4cecd7e20f44e737338 Mon Sep 17 00:00:00 2001 From: Leif Johansson Date: Thu, 4 Oct 2012 15:09:52 +0200 Subject: asgard --- src/asgard/asgard.json | 3 +++ src/asgard/settings.d/10-apps.conf | 26 ++++++++++++++++++++++++++ src/asgard/settings.d/20-saml.conf | 22 ++++++++++++++++++++++ src/asgard/venv.conf | 33 +++++++++++++++++++++++++++++++++ 4 files changed, 84 insertions(+) create mode 100644 src/asgard/asgard.json create mode 100644 src/asgard/settings.d/10-apps.conf create mode 100644 src/asgard/settings.d/20-saml.conf create mode 100644 src/asgard/venv.conf (limited to 'src/asgard') diff --git a/src/asgard/asgard.json b/src/asgard/asgard.json new file mode 100644 index 0000000..2c28ed3 --- /dev/null +++ b/src/asgard/asgard.json @@ -0,0 +1,3 @@ +{ +"type": "django" +} diff --git a/src/asgard/settings.d/10-apps.conf b/src/asgard/settings.d/10-apps.conf new file mode 100644 index 0000000..4dac23c --- /dev/null +++ b/src/asgard/settings.d/10-apps.conf @@ -0,0 +1,26 @@ + +INSTALLED_APPS += [ + 'django.contrib.auth', + 'django.contrib.contenttypes', + 'django.contrib.sessions', + 'django.contrib.sites', + 'django.contrib.admin', + 'django.contrib.humanize', + 'django_extensions', + 'south', + 'djcelery', + 'ghettoq', + 'djkombu', + 'django_co_connector', + 'django_co_acls', + 'tagging', + 'meetingtools.extensions', + 'meetingtools.apps.auth', + 'meetingtools.apps.room', + 'meetingtools.apps.cluster', + 'meetingtools.apps.userprofile', + 'meetingtools.apps.stats' +] + +DEBUG=True +MEDIA_ROOT = "%s/static" % BASE_DIR \ No newline at end of file diff --git a/src/asgard/settings.d/20-saml.conf b/src/asgard/settings.d/20-saml.conf new file mode 100644 index 0000000..e623bb5 --- /dev/null +++ b/src/asgard/settings.d/20-saml.conf @@ -0,0 +1,22 @@ + +from django.conf import settings +from saml2 import BINDING_HTTP_POST, BINDING_HTTP_REDIRECT + +AUTH_PROFILE_MODULE = 'profile.UserProfile' + +SAML_ATTRIBUTE_MAPPING = { + 'username': ['eduPersonPrincipalName'], + 'first_name': ['givenName'], + 'last_name': ['sn'], + 'display_name': ['displayName','cn'] +} + +LOGIN_URL = '/auth/login/' +SESSION_EXPIRE_AT_BROWSER_CLOSE = True +SAML_METADATA_FILE = "/var/run/swamid-idp-transitive.xml" +SAML_CREATE_UNKNOWN_USER = True +SAML_CONFIG_LOADER = "meetingtools.apps.auth.asgard_sp_config" + +#AUTHENTICATION_BACKENDS += ['keybucket.utils.saml.TargetedUsernameSamlBackend'] + +AUTO_REMOTE_SUPERUSERS = ['leifj@nordu.net'] \ No newline at end of file diff --git a/src/asgard/venv.conf b/src/asgard/venv.conf new file mode 100644 index 0000000..ae4ba0a --- /dev/null +++ b/src/asgard/venv.conf @@ -0,0 +1,33 @@ +Django +python-dateutil==1.5.0 +South +Werkzeug +anyjson +celery +demjson +distribute +django-avatar +django-celery +django-evolution +django-extensions +django-form-utils +django-kombu +django-oauth +django-picklefield +django-tagging +feedparser +generateDS +ghettoq +iso8601 +kombu +lxml +morbid +mysql-connector-python +odict +ordereddict +pySAML2 +suds +uuid +git+git://github.com/berggren/django-co-acls.git +git+git://github.com/berggren/django-co-connector.git +pytz -- cgit v1.1