diff options
author | Leif Johansson <leifj@sunet.se> | 2012-10-04 15:09:52 +0200 |
---|---|---|
committer | Leif Johansson <leifj@sunet.se> | 2012-10-04 15:09:52 +0200 |
commit | 0245d412ce8f3a31b384b4cecd7e20f44e737338 (patch) | |
tree | cf3a84b4409b4e828a207c7231774ba44bf12120 /src | |
parent | ec839d583fff6b279c7cdec2fdf87762f81f9aa5 (diff) |
asgard
Diffstat (limited to 'src')
-rw-r--r-- | src/asgard/asgard.json | 3 | ||||
-rw-r--r-- | src/asgard/settings.d/10-apps.conf | 26 | ||||
-rw-r--r-- | src/asgard/settings.d/20-saml.conf | 22 | ||||
-rw-r--r-- | src/asgard/venv.conf | 33 |
4 files changed, 84 insertions, 0 deletions
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 |