diff options
author | Leif Johansson <leifj@sunet.se> | 2012-04-05 13:35:43 +0200 |
---|---|---|
committer | Leif Johansson <leifj@sunet.se> | 2012-04-05 13:35:43 +0200 |
commit | 183dde3697a371a926c0bdc9dd8bac940c8f98ca (patch) | |
tree | 107fb100b72e5456f443a17094939f65c690e646 | |
parent | a72b3c77839b9e5e29071d40d47842658fe9f71f (diff) |
dammit
-rw-r--r-- | asgard/settings.d/20-saml.conf | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/asgard/settings.d/20-saml.conf b/asgard/settings.d/20-saml.conf index 4394c09..3dc3349 100644 --- a/asgard/settings.d/20-saml.conf +++ b/asgard/settings.d/20-saml.conf @@ -10,8 +10,11 @@ AUTH_PROFILE_MODULE = 'userprofile.UserProfile' LOGIN_URL = '/saml2/sp/login/' SESSION_EXPIRE_AT_BROWSER_CLOSE = True -def asgard_sp_config(request): - return { +def asgard_sp_config(request=None): + host = "localhost" + if request != None: + host = request.get_host().replace(":","-") + return { # your entity id, usually your subdomain plus the url to the metadata view 'entityid': 'https://coip.app.nordu.net/saml2/sp/metadata', # directory with attribute mapping |