-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
Allow JWT issuer AuthenticationManagerResolvers to accept predicate issuer validator #13428
Allow JWT issuer AuthenticationManagerResolvers to accept predicate issuer validator #13428
Conversation
bd0ba03
to
633a2c2
Compare
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, @singhbaljit! First, please see my inline feedback.
Second, will you please add some tests of the new functionality?
...k/security/oauth2/server/resource/authentication/JwtIssuerAuthenticationManagerResolver.java
Outdated
Show resolved
Hide resolved
...k/security/oauth2/server/resource/authentication/JwtIssuerAuthenticationManagerResolver.java
Show resolved
Hide resolved
...k/security/oauth2/server/resource/authentication/JwtIssuerAuthenticationManagerResolver.java
Outdated
Show resolved
Hide resolved
...k/security/oauth2/server/resource/authentication/JwtIssuerAuthenticationManagerResolver.java
Outdated
Show resolved
Hide resolved
633a2c2
to
3d6f918
Compare
re: testsI'm honestly not sure what new tests to add. The existing tests already cover the functionality. I'm just exposing it publicly. |
828e780
to
1c04dbb
Compare
1c04dbb
to
b63ac11
Compare
cdce2ab
to
5695abe
Compare
...k/security/oauth2/server/resource/authentication/JwtIssuerAuthenticationManagerResolver.java
Outdated
Show resolved
Hide resolved
5695abe
to
c285716
Compare
- Added JavaDoc @SInCE attribute - Added Predicate based test - Adjusted test names Issue spring-projectsgh-13427
c285716
to
b77f65b
Compare
Also, you probably want to fixup the |
Thanks, @singhbaljit! This is now merged into |
Also, the documentation was updated in 3b7e7f6 |
Close #13427
TrustedIssuerJwtAuthenticationManagerResolver
public so constructors to validate issuer with a predicate can be used.Set
instead ofArrayList
; it has O(1) time complexity for look ups.