-
Notifications
You must be signed in to change notification settings - Fork 6k
Allow to set default securityContextRepository for each authenticatio… #7275
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
Conversation
@jzheaux how should
My current PR is setting the global Note: there have been some changes in other tests since http basic and auth2 login never read the Thanks in advance |
@eddumelendez Good observations.
No, good catch, I think that this should be set to |
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, @eddumelendez! I've left some feedback inline.
...ig/src/test/java/org/springframework/security/config/web/server/ServerHttpSecurityTests.java
Show resolved
Hide resolved
...ig/src/test/java/org/springframework/security/config/web/server/ServerHttpSecurityTests.java
Outdated
Show resolved
Hide resolved
|
||
homePage.assertAt(); | ||
|
||
verify(defaultSecContextRepository, times(3)).load(any()); |
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.
I think the times(3)
criteria will make this brittle. For this test, I think we should simply confirm that the application used the configured repository.
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.
I am change it for atLeastOnce()
, is it ok?
config/src/main/java/org/springframework/security/config/web/server/ServerHttpSecurity.java
Outdated
Show resolved
Hide resolved
config/src/main/java/org/springframework/security/config/web/server/ServerHttpSecurity.java
Show resolved
Hide resolved
@jzheaux I have added a new commit with the changes. Thanks again for the review. Once get the approval I will rebase it and squash the commits |
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.
@eddumelendez Thanks for the updates. I have just one more question inline.
.../org/springframework/security/config/annotation/web/reactive/EnableWebFluxSecurityTests.java
Outdated
Show resolved
Hide resolved
@jzheaux thanks again for all your feedback. I have submitted a new commit |
Great, @eddumelendez, go ahead and squash your commits in preparation for merging. |
c49db83
to
05ce0b1
Compare
@jzheaux done :) |
…n mechanisms
Fixes gh-7249