We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f11197 commit f8615e9Copy full SHA for f8615e9
src/saml2/response.py
@@ -209,10 +209,10 @@ def for_me(conditions, myself):
209
if not restriction.audience:
210
continue
211
for audience in restriction.audience:
212
- if audience.text.strip() == myself:
+ if audience.text and audience.text.strip() == myself:
213
return True
214
else:
215
- logger.debug("AudienceRestriction - One condition not satisfied: %s != %s" % (audience.text.strip(), myself))
+ logger.debug("AudienceRestriction - One condition not satisfied: {} != {}".format(audience.text, myself))
216
logger.debug("AudienceRestrictions not satisfied!")
217
return False
218
0 commit comments