Homec4science

WebStyle: error code 401 on authorization failure

Authored by kuncar on Aug 9 2013, 13:08.

Description

WebStyle: error code 401 on authorization failure

  • Adds error code 401 when user is not authorized instead of just flashing an error message with a success code.
  • Uses same unauthorized handler in Flask login_manager as 401 error handler.
  • Fixes webstyle regression tests.

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>
Co-authored-by: Konstantinos Ntemagkos <konstantinos.ntemagkos@cern.ch>

Details

Event Timeline

Tibor Simko <tibor.simko@cern.ch> committed R3600:2f535c000c14: WebStyle: error code 401 on authorization failure (authored by Jiri Kuncar <jiri.kuncar@cern.ch>).Aug 13 2013, 13:51