Fix to use the correct Extensions element.
This commit is contained in:
parent
5a1add6827
commit
e85fffa51f
|
@ -516,7 +516,7 @@ def do_authentication(environ, start_response, authn_context, key,
|
|||
|
||||
PASSWD = {
|
||||
"daev0001": "qwerty",
|
||||
"haho0032": "qwerty",
|
||||
"testuser": "qwerty",
|
||||
"roland": "dianakra",
|
||||
"babs": "howes",
|
||||
"upper": "crust"}
|
||||
|
|
|
@ -35,22 +35,22 @@
|
|||
#USERS = LDAPDict(**ldap_settings)
|
||||
|
||||
USERS = {
|
||||
"haho0032": {
|
||||
"sn": "Hoerberg",
|
||||
"givenName": "Hasse",
|
||||
"testuser": {
|
||||
"sn": "Testsson",
|
||||
"givenName": "Test",
|
||||
"eduPersonAffiliation": "student",
|
||||
"eduPersonScopedAffiliation": "student@example.com",
|
||||
"eduPersonPrincipalName": "haho@example.com",
|
||||
"uid": "haho0032",
|
||||
"eduPersonPrincipalName": "test@example.com",
|
||||
"uid": "testuser",
|
||||
"eduPersonTargetedID": "one!for!all",
|
||||
"c": "SE",
|
||||
"o": "Example Co.",
|
||||
"ou": "IT",
|
||||
"initials": "P",
|
||||
"schacHomeOrganization": "example.com",
|
||||
"email": "hans@example.com",
|
||||
"displayName": "Hans Hoerberg",
|
||||
"labeledURL": "http://www.example.com/haho My homepage",
|
||||
"email": "test@example.com",
|
||||
"displayName": "Test Testsson",
|
||||
"labeledURL": "http://www.example.com/test My homepage",
|
||||
"norEduPersonNIN": "SE199012315555"
|
||||
},
|
||||
"roland": {
|
||||
|
|
|
@ -35,7 +35,7 @@ from saml2.s_utils import UnsupportedBinding
|
|||
from saml2.s_utils import sid
|
||||
from saml2.s_utils import rndstr
|
||||
#from srtest import exception_trace
|
||||
from saml2.md import Extensions
|
||||
from saml2.samlp import Extensions
|
||||
import xmldsig as ds
|
||||
|
||||
logger = logging.getLogger("")
|
||||
|
|
|
@ -14,7 +14,7 @@ import traceback
|
|||
import saml2
|
||||
import six
|
||||
from urlparse import parse_qs, urlparse
|
||||
from saml2.md import Extensions
|
||||
from saml2.samlp import Extensions
|
||||
from saml2 import xmldsig as ds
|
||||
|
||||
from StringIO import StringIO
|
||||
|
|
Loading…
Reference in New Issue