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

CAMEL-16606 Allow specifying security requirement(s) applicable to entire API #5557

Merged
merged 1 commit into from May 14, 2021

Conversation

electrosaur
Copy link
Contributor

@electrosaur electrosaur commented May 13, 2021

Calls to RestDefinition.security(String key [, String scopes]) without a verb adds the security scheme specified by key as a security requirement for all rest calls. Added private RestSecuritiesRequirement securityRequirements; to RestDefinition to keep track of these global security requirement(s) as a list of SecurityDefinition. Changed RestOpenApiReader to create OasSecurityRequirement(s) in the APICurio model if there are global security requirements. Added test class RestOpenApiModelApiSecurityRequirementsTest.

…tire API

Calls to RestDefinition.security(String key [, String scopes]) without a verb adds the security scheme specified by key
as a security requirement for all rest calls.
@davsclaus davsclaus merged commit 5c3e362 into apache:main May 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants