-
Notifications
You must be signed in to change notification settings - Fork 475
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix security handling of multiple auth types for hapi/koa
As part of this refactored how calls to the authentication method for each server type are handled. Express multi auth was not previously broken but I was able to share the same solution across all three servers and isolate the server specific handling to a single block of code after waiting for the appropriate promises to be resolved. I additionally added tests for the following: - security AND / OR tests for hapi/koa - a slow failure test to show that promiseAny returns with first success - checks for which error is resolved to the user in the case that there is more than one Closes #974
- Loading branch information
Showing
12 changed files
with
635 additions
and
140 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.