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

Add jakarta security annotation mapping #775

Conversation

frehov
Copy link
Contributor

@frehov frehov commented Sep 10, 2021

Switched over the AnnotationMappers for javax security annotations to NamedAnnotationMapper as discussed in #774.
Added the Jakarta equaivalent mappers by extending the javax ones and overriding the namespace.

closes #774

@CLAassistant
Copy link

CLAassistant commented Sep 10, 2021

CLA assistant check
All committers have signed the CLA.

@frehov frehov marked this pull request as ready for review September 10, 2021 17:39
frehov pushed a commit to frehov/micronaut-security that referenced this pull request Sep 13, 2021
@frehov frehov force-pushed the feature/add_jakarta_security_annotation_mapping branch from 822cf7d to 6c987a4 Compare September 13, 2021 09:36
@frehov frehov changed the base branch from 3.0.x to master September 13, 2021 09:36
@graemerocher
Copy link
Contributor

Thanks code changes look good, we will need a test though. Probably just the same as https://github.com/micronaut-projects/micronaut-security/blob/master/security/src/test/groovy/io/micronaut/security/rolesallowed/RolesAllowedSpec.groovy with different annotations

…cs and replace test controllers with jakarta annotated controllers
@frehov
Copy link
Contributor Author

frehov commented Sep 13, 2021

@graemerocher I've extended the original specs and replaced the controllers so that they use the jakarta annotation.
Did a quick debug run of one of the tests, and it did halt in the jakarata annotated controller.

@sdelamo sdelamo added this to the 3.1.0 milestone Sep 13, 2021
Copy link
Contributor

@sdelamo sdelamo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@frehov Please add the annotations to the documentation as well. See secured.adoc

@sdelamo sdelamo added the type: enhancement New feature or request label Sep 14, 2021
@sdelamo sdelamo added this to In progress in Micronaut Developers Work Coordination via automation Sep 14, 2021
@sdelamo sdelamo moved this from In progress to Review in progress in Micronaut Developers Work Coordination Sep 14, 2021
@sdelamo sdelamo closed this in 0e7d74e Sep 14, 2021
Micronaut Developers Work Coordination automation moved this from Review in progress to Done Sep 14, 2021
@sdelamo sdelamo reopened this Sep 14, 2021
Micronaut Developers Work Coordination automation moved this from Done to In progress Sep 14, 2021
@frehov frehov requested a review from sdelamo September 17, 2021 10:56
Micronaut Developers Work Coordination automation moved this from In progress to Reviewer approved Sep 17, 2021
@sdelamo sdelamo merged commit 369dc3f into micronaut-projects:master Sep 17, 2021
Micronaut Developers Work Coordination automation moved this from Reviewer approved to Done Sep 17, 2021
@frehov frehov deleted the feature/add_jakarta_security_annotation_mapping branch September 17, 2021 15:37
@graemerocher
Copy link
Contributor

@frehov Thanks for the contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement New feature or request
Development

Successfully merging this pull request may close these issues.

support usage of jakarta annotations for micronaut-security
4 participants