changed field names saml
This commit is contained in:
parent
2dab8e6b12
commit
7962ce209a
@ -1,5 +1,7 @@
|
||||
import os
|
||||
|
||||
from django.contrib.auth.models import User
|
||||
|
||||
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
||||
SECRET_KEY = '_njkeh9n!4**hk@8e#e9mwa$#%7i5!bvl$2m**+v0l=g*nzm%b'
|
||||
DEBUG = True
|
||||
@ -69,14 +71,18 @@ AUTHENTICATION_BACKENDS = [
|
||||
'django_saml2_pro_auth.auth.Backend'
|
||||
]
|
||||
|
||||
User
|
||||
|
||||
|
||||
SAML_PROVIDER_METADATA_URL = 'https://tst-idp.id.rug.nl/nidp/saml2/metadata'
|
||||
SAML_ROUTE = 'sso/saml/'
|
||||
SAML_REDIRECT = '/'
|
||||
SAML_USERS_MAP = [{
|
||||
"RuG" : {
|
||||
"email": dict(key="Email", index=0),
|
||||
"name": dict(key="Username", index=0)
|
||||
"email": dict(key="urn:mace:dir:attribute-def:mail", index=0),
|
||||
"username": dict(key="urn:mace:dir:attribute-def:uid", index=0),
|
||||
"first_name": dict(key="urn:mace:dir:attribute-def:givenName", index=0),
|
||||
"last_name": dict(key="urn:mace:dir:attribute-def:sn", index=0),
|
||||
}
|
||||
}]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user