Description
Instead of using callbacks to manipulate the response, plugs should raise exceptions for authentication errors.
The user can then implement custom error views to adapt the responses.
Additionally: Add some details of internal errors like unsuccessful internal HTTP requests to the existing errors messages. It should however not include the whole reason since that can contain confidential information like client secrets.
Description
Instead of using callbacks to manipulate the response, plugs should raise exceptions for authentication errors.
The user can then implement custom error views to adapt the responses.
Additionally: Add some details of internal errors like unsuccessful internal HTTP requests to the existing errors messages. It should however not include the whole reason since that can contain confidential information like client secrets.