SAML-Toolkits / python3-saml

MIT License
699 stars 309 forks source link

Allow process_response and process_slo to raise is_valid exceptions #393

Open rwlogel opened 9 months ago

rwlogel commented 9 months ago

It is nice to be able to see the actual is_valid exception so you know exactly what line it was raised on in the validation code. This is helpful in determining exactly what rule was broken and if it is possible to disable that check.

Currently the raise_exceptions is a useful feature that isn't really accessible to the caller unless they make their own response object.

This feature was requested in the old project before it was retired. https://github.com/SAML-Toolkits/python-saml/pull/253