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

Return credentials and artifacts from server.auth.test() #3897



Copy link

@marcuspoehls marcuspoehls commented Jan 7, 2019

This PR includes a breaking change. If merged, this should be released with v18.

Previously, the credentials from the tested authentication strategy were passed through. This PR changes the return value of server.auth.test().


  • server.auth.test() now returns an object with the properties
    • `credentials (required)
    • artifacts (optional)

PS: If merged, I’ll send another PR to update the docs

@hueniverse hueniverse self-assigned this Jan 13, 2019
@hueniverse hueniverse added feature New functionality or improvement breaking changes Change that can breaking existing code labels Jan 13, 2019
@hueniverse hueniverse added this to the 18.0.0 milestone Jan 13, 2019
@hueniverse hueniverse merged commit ea108eb into hapijs:master Jan 13, 2019
hueniverse added a commit that referenced this pull request Jan 14, 2019
@marcuspoehls marcuspoehls deleted the server-auth-test-returns-artifacts branch January 14, 2019 09:16
Copy link
Contributor Author

@hueniverse Eran, thank you for the additional commit to update the! Thanks for merging 😊

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.
breaking changes Change that can breaking existing code feature New functionality or improvement
None yet

Successfully merging this pull request may close these issues.

None yet

2 participants