Skip to content

Commit 54e5be1

Browse files
committed
Fix #167, related to #136
1 parent 48addfd commit 54e5be1

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

changelog.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
* Improve Signature validation process
1414
* [#149](https://github.com/onelogin/python-saml/pull/149) Work-around for xmlsec.initialize
1515
* [#151](https://github.com/onelogin/python-saml/pull/151) Fix flask demo error handling and improve documentation
16-
*
1716
* [#152](https://github.com/onelogin/python-saml/pull/152) Update LICENSE to include MIT rather than BSD license
1817
* [#155](https://github.com/onelogin/python-saml/pull/155) Fix typographical errors in docstring
1918
* Fix RequestedAttribute Issue

src/onelogin/saml2/metadata.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ def builder(sp, authnsign=False, wsign=False, valid_until=None, cache_duration=N
9393
if 'friendlyName' in req_attribs.keys() and req_attribs['friendlyName']:
9494
req_attr_nameformat_str = " FriendlyName=\"%s\"" % req_attribs['friendlyName']
9595
if 'isRequired' in req_attribs.keys() and req_attribs['isRequired']:
96-
req_attr_isrequired_str = " isRequired=\"%s\"" % req_attribs['isRequired']
96+
req_attr_isrequired_str = " isRequired=\"%s\"" % 'true' if req_attribs['isRequired'] else 'false'
9797

9898
if 'attributeValue' in req_attribs.keys() and req_attribs['attributeValue']:
9999
if isinstance(req_attribs['attributeValue'], basestring):

0 commit comments

Comments
 (0)