-
-
Notifications
You must be signed in to change notification settings - Fork 753
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add test for verify_security with missing auth funcs This situation occurs when a x-infoFunc is missing in the openapi document. Then this security scheme is skipped and the auth_funcs is an empty list if there are no other security schemes. * Fix verify_security bug for empty list of auth_funcs When the auth_funcs argument is the empty list, an AttributeError is raised because the token_info is None and does not have a 'get' attribute. This leads to a 500 error.
- Loading branch information
Showing
3 changed files
with
15 additions
and
3 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