SAML-Toolkits / python3-saml

MIT License
670 stars 302 forks source link

Pass SLO request/response to callback #384

Open pencil opened 8 months ago

pencil commented 8 months ago

This change was briefly discussed here (7 years ago!): #32

By passing the logout request to the callback, the callback can determine the session indexes that should be destroyed. Similarly I ended up adding the logout response to the callback though I'm not 100% sure if this is useful. I'm happy to remove that part if it is not deemed useful.

I added a check for backward compatibility such that callbacks that do not accept any arguments will still work as expected.