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

Set empty security array for empty @SecurityRequirements #395

Merged

Conversation

MikeEdgar
Copy link
Member

Fixes #382

@phillip-kruger , @EricWittmann - what are your thoughts on this behavior?

  1. Set security to an empty array if the user gives an empty @SecurityRequirements at either the resource method or class level
  2. Do not combine method and class level security requirements. Allow method level to override the class level, if given

yreifschneider and others added 2 commits July 15, 2020 05:40
- Method security annotations override class annotations rather than
appending to them.
@phillip-kruger phillip-kruger merged commit 496871c into smallrye:master Jul 15, 2020
@MikeEdgar MikeEdgar added this to the 2.0.3 milestone Jul 15, 2020
@MikeEdgar MikeEdgar deleted the 328_empty_security_requirements branch July 15, 2020 10:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Override global @SecurityRequirements with empty value on resource
3 participants