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

[OAS 3.1.0] All security schemes may now define required roles #590

Closed
Azquelt opened this issue Jan 19, 2024 · 1 comment · Fixed by #615
Closed

[OAS 3.1.0] All security schemes may now define required roles #590

Azquelt opened this issue Jan 19, 2024 · 1 comment · Fixed by #615
Assignees
Labels
OAS 3.1.0 All issues related to OpenAPI version 3.1.0 support

Comments

@Azquelt
Copy link
Member

Azquelt commented Jan 19, 2024

Previously, in a Security Requirement Object, roles were only valid for oauth2 and openIdConnect (where they correspond to required scopes required for execution) but now roles can be specified for all security schemes.

We should:

  • Update our documentation to reflect the removal of this limitation:
    • SecurityRequirement annotation Javadoc
    • SecurityRequirement model interface Javadoc
  • Add a test which builds a model with roles where they were not previously allowed
  • Add a test which uses annotations to declare a security requirement with roles for a previously unsupported type
@Azquelt Azquelt added the OAS 3.1.0 All issues related to OpenAPI version 3.1.0 support label Jan 19, 2024
@Azquelt Azquelt added this to the MP OpenAPI 4.0 milestone Jan 19, 2024
@benjamin-confino
Copy link
Contributor

Please assign this one to me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OAS 3.1.0 All issues related to OpenAPI version 3.1.0 support
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants