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.
2 parents 7fe3039 + e8550c1 commit ac2ac18Copy full SHA for ac2ac18
1 file changed
src/onelogin/saml2/response.py
@@ -243,12 +243,8 @@ def get_audiences(self):
243
:returns: The valid audiences for the SAML Response
244
:rtype: list
245
"""
246
- audiences = []
247
-
248
audience_nodes = self.__query_assertion('/saml:Conditions/saml:AudienceRestriction/saml:Audience')
249
- for audience_node in audience_nodes:
250
- audiences.append(audience_node.text)
251
- return audiences
+ return [node.text for node in audience_nodes if node.text is not None]
252
253
def get_issuers(self):
254
0 commit comments