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

Add entire auth object to validation context options #2886

Closed
nlindley opened this issue Oct 29, 2015 · 0 comments
Closed

Add entire auth object to validation context options #2886

nlindley opened this issue Oct 29, 2015 · 0 comments
Assignees
Labels
Milestone

Comments

@nlindley
Copy link
Contributor

@nlindley nlindley commented Oct 29, 2015

We were hoping to get to auth.strategy in a payload validation function. It looks like only isAuthenticated and credentials are passed. Is there a reason context.auth can’t be set to request.auth? Or could strategy and mode be added?

https://github.com/hapijs/hapi/blob/master/lib/validation.js#L119

@hueniverse hueniverse added this to the 12.0.0 milestone Jan 2, 2016
@hueniverse hueniverse self-assigned this Jan 2, 2016
@hueniverse hueniverse added feature and removed request labels Jan 2, 2016
@hueniverse hueniverse closed this in 70b31a6 Jan 2, 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