summaryrefslogtreecommitdiff
path: root/src/saml2/config.py
diff options
context:
space:
mode:
authorIvan Kanakarakis <ivan.kanak@gmail.com>2018-08-03 03:02:25 +0300
committerGitHub <noreply@github.com>2018-08-03 03:02:25 +0300
commit134f5d78d5354f0be48a2461e0b9d8aeb3735329 (patch)
treec32491e49a7f0579d9df7723f7f3ab36946af159 /src/saml2/config.py
parent58a3bfd47886762d94b6196a31773b2a08ef0b81 (diff)
parentefb294558b91c296cf4a392606289ff1273123bf (diff)
downloadpysaml2-134f5d78d5354f0be48a2461e0b9d8aeb3735329.tar.gz
Merge pull request #528 from c00kiemon5ter/fix-logout-return-addrs
Retrieve SLO endpoint by the appropriate service type This is triggered when the self.config object has not been created through the SPConfig class, or the IdPConfig class, or the config_factory() function, but directly through the Config class. This results in the config object not having a context as it empty by default. When that happens and endpoint() is called without being passed a context parameter, then getattr() will fail to return the correct attribute. The solution is to pass the context parameter when calling the endpoint() method. This is achieved by passing the entity_type attribute. Moreover, _parse_response() used to call endpoint() only for BINDING_HTTP_REDIRECT and BINDING_HTTP_POST. Thus, return_addrs would be left empty for BINDING_SOAP. The second part of the solution is adding BINDING_SOAP to the bindings that will be checked to fill in return_addrs.
Diffstat (limited to 'src/saml2/config.py')
0 files changed, 0 insertions, 0 deletions