Skip to content

Commit ea93835

Browse files
author
Jimmy John
committed
Fix unit test breakage
1 parent f73b581 commit ea93835

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/onelogin/saml2/authn_request.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def __init__(self, settings, force_authn=False, is_passive=False):
8989
requested_authn_context_str += ' </samlp:RequestedAuthnContext>'
9090

9191
attr_consuming_service_str = ''
92-
if 'attributeConsumingService' in sp_data:
92+
if 'attributeConsumingService' in sp_data and sp_data['attributeConsumingService']:
9393
# TODO: Do we have to account for the case when we have multiple attributeconsumers?
9494
# like will the index be > 1?
9595
attr_consuming_service_str = 'AttributeConsumingServiceIndex="1"'

0 commit comments

Comments
 (0)