diff options
author | Maxime Besson <maxime.besson@worteks.com> | 2020-09-28 18:14:28 +0200 |
---|---|---|
committer | Ivan Kanakarakis <ivan.kanak@gmail.com> | 2020-10-27 22:07:54 +0200 |
commit | 0edfb57b8863d39a776b9a1c0e288c8f95d845bb (patch) | |
tree | 48329014ffaf7fec1e952f7057d8a88889f929dd /src/saml2/mdstore.py | |
parent | ca60cd969a263570c6fe0b1247e319dcba63f813 (diff) | |
download | pysaml2-0edfb57b8863d39a776b9a1c0e288c8f95d845bb.tar.gz |
Fixes #720: honor ResponseLocation in metadata when building logout responses
Diffstat (limited to 'src/saml2/mdstore.py')
-rw-r--r-- | src/saml2/mdstore.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/saml2/mdstore.py b/src/saml2/mdstore.py index 24fccb4d..41e521ec 100644 --- a/src/saml2/mdstore.py +++ b/src/saml2/mdstore.py @@ -149,6 +149,15 @@ def metadata_modules(): return _res +def response_destinations(srvs): + _res = [] + for s in srvs: + if "response_location" in s: + _res.append(s["response_location"]) + else: + _res.append(s["location"]) + return _res + def destinations(srvs): return [s["location"] for s in srvs] |