Problem/Motivation

AuthenticationException returns a 500 error

Steps to reproduce

Generate a token using an invalid credential and the response will be HTTP/1.1 500 500 Service unavailable (with message)

Proposed resolution

Use Symfony HttpException to have a proper HTTP status response and message

Obscure "Invalid X-AUTH-TOKEN" to "Invalid token"

Comments

jfussion created an issue. See original summary.

jfussion’s picture

jfussion’s picture

Assigned: jfussion » Unassigned
jfussion’s picture

anybody’s picture

Version: 8.x-1.6 » 8.x-1.x-dev
Status: Active » Reviewed & tested by the community

Nice work, RTBC for #4.

Patches should always be against dev.