Skip to content
This repository has been archived by the owner on Dec 21, 2023. It is now read-only.

Commit

Permalink
Making SAML entityId configurable (#187) (#188)
Browse files Browse the repository at this point in the history
* Make entityid configurable

* Move and comment out cron-related variable

* Undo unrelated .env.sample change
  • Loading branch information
ssciolla authored Oct 30, 2019
1 parent 824aa70 commit d2cd44a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions student_explorer/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,10 +190,11 @@
SAML2_REMOTE_PEM_FILE = config('STUDENT_EXPLORER_SAML_REMOTE_PEM_FILE',default='')

SAML2_DEFAULT_IDP = config('STUDENT_EXPLORER_SAML_DEFAULT_IDP',default='')

if SAML2_DEFAULT_IDP:
SAML2_DEFAULT_IDP = '?idp=%s' % SAML2_DEFAULT_IDP

SAML2_ENTITYID = config('SAML2_ENTITYID', default=SAML2_URL_BASE + 'metadata/')

INSTALLED_APPS += ('djangosaml2',)
AUTHENTICATION_BACKENDS = (
'django.contrib.auth.backends.ModelBackend',
Expand All @@ -206,7 +207,7 @@
import saml2
SAML_CONFIG = {
'xmlsec_binary': '/usr/bin/xmlsec1',
'entityid': '%smetadata/' % SAML2_URL_BASE,
'entityid': SAML2_ENTITYID,

# directory with attribute mapping
# 'attribute_map_dir': os.path.join(BASE_DIR, 'attribute-maps'),
Expand Down

0 comments on commit d2cd44a

Please sign in to comment.