Skip to content

Access to scope errors list from a Forbidden error #3302

@irothschild

Description

@irothschild

In the auth validate() function it builds a list of scope errors and if there are any, it logs them with the request and creates a Boom.forbidden. The problem is that the scopeErrors is then lost. It would be great if it were added to the error instance so it could be used in a onPreResponse handler to construct a useful error message.

Metadata

Metadata

Assignees

Labels

featureNew functionality or improvement

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions