Skip to content

Commit e85fffa

Browse files
author
Hans Hörberg
committed
Fix to use the correct Extensions element.
1 parent 5a1add6 commit e85fffa

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

example/idp2/idp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,7 @@ def do_authentication(environ, start_response, authn_context, key,
516516

517517
PASSWD = {
518518
"daev0001": "qwerty",
519-
"haho0032": "qwerty",
519+
"testuser": "qwerty",
520520
"roland": "dianakra",
521521
"babs": "howes",
522522
"upper": "crust"}

example/idp2/idp_user.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,22 +35,22 @@
3535
#USERS = LDAPDict(**ldap_settings)
3636

3737
USERS = {
38-
"haho0032": {
39-
"sn": "Hoerberg",
40-
"givenName": "Hasse",
38+
"testuser": {
39+
"sn": "Testsson",
40+
"givenName": "Test",
4141
"eduPersonAffiliation": "student",
4242
"eduPersonScopedAffiliation": "[email protected]",
43-
"eduPersonPrincipalName": "haho@example.com",
44-
"uid": "haho0032",
43+
"eduPersonPrincipalName": "test@example.com",
44+
"uid": "testuser",
4545
"eduPersonTargetedID": "one!for!all",
4646
"c": "SE",
4747
"o": "Example Co.",
4848
"ou": "IT",
4949
"initials": "P",
5050
"schacHomeOrganization": "example.com",
51-
"email": "hans@example.com",
52-
"displayName": "Hans Hoerberg",
53-
"labeledURL": "http://www.example.com/haho My homepage",
51+
"email": "test@example.com",
52+
"displayName": "Test Testsson",
53+
"labeledURL": "http://www.example.com/test My homepage",
5454
"norEduPersonNIN": "SE199012315555"
5555
},
5656
"roland": {

example/sp-wsgi/sp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
from saml2.s_utils import sid
3636
from saml2.s_utils import rndstr
3737
#from srtest import exception_trace
38-
from saml2.md import Extensions
38+
from saml2.samlp import Extensions
3939
import xmldsig as ds
4040

4141
logger = logging.getLogger("")

src/saml2/s2repoze/plugins/sp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
import saml2
1515
import six
1616
from urlparse import parse_qs, urlparse
17-
from saml2.md import Extensions
17+
from saml2.samlp import Extensions
1818
from saml2 import xmldsig as ds
1919

2020
from StringIO import StringIO

0 commit comments

Comments
 (0)