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

server.inject does not allow me to set auth artifacts, only auth credentials #2501

anneveling opened this issue Apr 14, 2015 · 1 comment
feature New functionality or improvement


Copy link

When an auth plugin exposes authentication artifacts (such as the User object from a database lookup), to be accessed in all route handlers via the request.auth.artifacts object, then this cannot be tested anymore using the server.inject method.
That code only allows to set a credentials object in the options, but not the artifacts (too).
(working on a pull request to fix this too)

anneveling added a commit to anneveling/hapi that referenced this issue Apr 14, 2015
…er.inject method, add test, update documentation
hueniverse pushed a commit that referenced this issue Apr 20, 2015
Fix Hapi Issue #2501, pass on auth artifacts object in server.inject
@hueniverse hueniverse added this to the 8.4.1 milestone Apr 20, 2015
@hueniverse hueniverse self-assigned this Apr 20, 2015
@Marsup Marsup added feature New functionality or improvement and removed request labels Sep 20, 2019
Copy link

lock bot commented Jan 9, 2020

This thread has been automatically locked due to inactivity. Please open a new issue for related bugs or questions following the new issue template instructions.

@lock lock bot locked as resolved and limited conversation to collaborators Jan 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
feature New functionality or improvement
None yet

No branches or pull requests

3 participants