-
Notifications
You must be signed in to change notification settings - Fork 98
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
Security Objects handling and parameter validation #112
Conversation
def _build_params_from_security_objects(op): | ||
""" | ||
Generate the required parameters from the security object definition. | ||
NOTE: the current implementation handles only basic and apiKey types. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should probably start mentioning this in the documentation.
Could you add an entry for security support in there?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sorry @laucia but is not clear to me what you meant ... could you please give me more informations? Thanks a lot
This is looking really good! Could you please add a test or two making sure the new security object parameters behave properly for validation? I.e. we'd want a validation error if they're missing for example, at least for the api_key type. |
NOTE: Support for: - Basic and ApiKey Only (no oauth2) - Security Objects in Operation Object Only ApiKey Support and Security Objects
ebacd50
to
76684b9
Compare
76684b9
to
31e4ad2
Compare
I have added 2 tests |
👍 Taking this, it's a nice foundation to build upon. |
Handling of security definitions for an Operation object and enforcing request parameter validation in case of
apiKey
security.