Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Access to scope errors list from a Forbidden error #3302

Closed
irothschild opened this issue Aug 22, 2016 · 0 comments
Closed

Access to scope errors list from a Forbidden error #3302

irothschild opened this issue Aug 22, 2016 · 0 comments
Assignees
Labels
Milestone

Comments

@irothschild
Copy link

@irothschild irothschild commented Aug 22, 2016

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.

@hueniverse hueniverse self-assigned this Aug 23, 2016
@hueniverse hueniverse added this to the 15.0.0 milestone Aug 23, 2016
@lock lock bot locked as resolved and limited conversation to collaborators Jan 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants