-
Notifications
You must be signed in to change notification settings - Fork 6k
Add ability to customize AuthenticationManager and AuthorizationManager observation conventions #12753
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 ability to customize AuthenticationManager and AuthorizationManager observation conventions #12753
Conversation
@braunsonm Please sign the Contributor License Agreement! Click here to manually synchronize the status of this Pull Request. See the FAQ for frequently asked questions. |
@braunsonm Thank you for signing the Contributor License Agreement! |
cc @jzheaux |
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.
Thanks, @braunsonm! Sorry it took me a bit to get to reviewing your PR; I've left some feedback inline.
In addition to that inline feedback, will you please add unit tests to confirm that your new functionality works? Please, for example, add a test to ObservationAuthenticationManagerTests
and one to each of the other corresponding test classes.
When you are ready to go, please squash all of your commits into one with a commit message that looks something like this:
Support Customizing Observation Conventions
Closes gh-12534
This format integrates with GitHub to close the ticket automatically, which is helpful.
.../main/java/org/springframework/security/authentication/ObservationAuthenticationManager.java
Outdated
Show resolved
Hide resolved
.../main/java/org/springframework/security/authentication/ObservationAuthenticationManager.java
Outdated
Show resolved
Hide resolved
.../main/java/org/springframework/security/authentication/ObservationAuthenticationManager.java
Show resolved
Hide resolved
dc1288c
to
eb11863
Compare
Should be good. There isn't much to test on a setter but I assumed you wanted the assertion tested |
aec54b2
to
8970352
Compare
Change to setObservationConvention so that it reads more clearly when used, for example `authenticationManager.setObservationConvention` is clearer than `authenticationManager.setConvention`. Change unit test names to follow team conventions. Issue spring-projectsgh-12534
6cb538c
to
f0a90a4
Compare
Thanks, @braunsonm! This is now merged into |
Fixes #12534