Skip to content
Snippets Groups Projects
Forked from Maunium / synapse
Source project has a limited visibility.
  • Richard van der Hoff's avatar
    1bbc9e2d
    Clean up exception handling in SAML2ResponseResource (#7614) · 1bbc9e2d
    Richard van der Hoff authored
    * Expose `return_html_error`, and allow it to take a Jinja2 template instead of a raw string
    
    * Clean up exception handling in SAML2ResponseResource
    
      * use the existing code in `return_html_error` instead of re-implementing it
        (giving it a jinja2 template rather than inventing a new form of template)
    
      * do the exception-catching in the REST layer rather than in the handler
        layer, to make sure we catch all exceptions.
    Clean up exception handling in SAML2ResponseResource (#7614)
    Richard van der Hoff authored
    * Expose `return_html_error`, and allow it to take a Jinja2 template instead of a raw string
    
    * Clean up exception handling in SAML2ResponseResource
    
      * use the existing code in `return_html_error` instead of re-implementing it
        (giving it a jinja2 template rather than inventing a new form of template)
    
      * do the exception-catching in the REST layer rather than in the handler
        layer, to make sure we catch all exceptions.