blob: e623bb596392109d4c6223334b354269bd44b16d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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']
|