Skip to content

Commit fe3ad90

Browse files
author
Jimmy John
committed
review comments
1 parent 07ec200 commit fe3ad90

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
setup(
1111
name='python-saml',
12-
version='2.2.0',
12+
version='2.1.6',
1313
description='Onelogin Python Toolkit. Add SAML support to your Python software using this library',
1414
classifiers=[
1515
'Development Status :: 4 - Beta',

src/onelogin/saml2/metadata.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ def builder(sp, authnsign=False, wsign=False, valid_until=None, cache_duration=N
182182
str_contacts = '\n'.join(contacts_info)
183183

184184
metadata = """<?xml version="1.0"?>
185-
<md:EntityDescriptor xmlns:md="urn:oasis:names:tc:SAML:2.0:metadata" xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion"
185+
<md:EntityDescriptor xmlns:md="urn:oasis:names:tc:SAML:2.0:metadata" %(saml_namespace)s
186186
%(valid)s
187187
%(cache)s
188188
entityID="%(entity_id)s">
@@ -207,6 +207,7 @@ def builder(sp, authnsign=False, wsign=False, valid_until=None, cache_duration=N
207207
'sls': sls,
208208
'organization': str_organization,
209209
'contacts': str_contacts,
210+
'saml_namespace': 'xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion"' if attr_consuming_service else ''
210211
}
211212

212213
# i'm not sure why the above xml was build by hand. Building via lxml is way easier,

0 commit comments

Comments
 (0)