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