Skip to content

Commit ee8b5d7

Browse files
committed
Refactor
1 parent fa1ddab commit ee8b5d7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/onelogin/saml2/settings.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -534,8 +534,9 @@ def get_idp_slo_response_url(self):
534534
:returns: an URL, the SLO return endpoint of the IdP
535535
:rtype: string
536536
"""
537-
slo_data = self.get_idp_data()['singleLogoutService']
538-
return slo_data.get('responseUrl', self.get_idp_slo_url())
537+
idp_data = self.get_idp_data()
538+
if 'url' in idp_data['singleLogoutService']:
539+
return idp_data['singleLogoutService'].get('responseUrl', self.get_idp_slo_url())
539540

540541
def get_sp_key(self):
541542
"""

0 commit comments

Comments
 (0)