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

Allow JWT issuer AuthenticationManagerResolvers to accept predicate issuer validator #13428

Merged
merged 6 commits into from
Aug 8, 2023

Conversation

singhbaljit
Copy link
Contributor

@singhbaljit singhbaljit commented Jun 26, 2023

Close #13427

  • Make TrustedIssuerJwtAuthenticationManagerResolver public so constructors to validate issuer with a predicate can be used.
  • Makes the servlet and reactive versions a little more consistent (i.e. logging)
  • Use Set instead of ArrayList; it has O(1) time complexity for look ups.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Jun 26, 2023
@singhbaljit singhbaljit force-pushed the predicate-issuer-resolver branch from bd0ba03 to 633a2c2 Compare June 26, 2023 15:21
@jzheaux jzheaux self-assigned this Jul 11, 2023
@jzheaux jzheaux added type: enhancement A general enhancement in: oauth2 An issue in OAuth2 modules (oauth2-core, oauth2-client, oauth2-resource-server, oauth2-jose) and removed status: waiting-for-triage An issue we've not yet triaged labels Jul 11, 2023
Copy link
Contributor

@jzheaux jzheaux left a 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?

@singhbaljit singhbaljit force-pushed the predicate-issuer-resolver branch from 633a2c2 to 3d6f918 Compare July 13, 2023 15:04
@singhbaljit
Copy link
Contributor Author

singhbaljit commented Jul 13, 2023

@jzheaux

re: tests

I'm honestly not sure what new tests to add. The existing tests already cover the functionality. I'm just exposing it publicly.

@singhbaljit singhbaljit force-pushed the predicate-issuer-resolver branch 2 times, most recently from 828e780 to 1c04dbb Compare August 7, 2023 05:24
@jzheaux jzheaux force-pushed the predicate-issuer-resolver branch from 1c04dbb to b63ac11 Compare August 7, 2023 20:41
@jzheaux jzheaux added this to the 6.2.0-M2 milestone Aug 7, 2023
@jzheaux jzheaux force-pushed the predicate-issuer-resolver branch 2 times, most recently from cdce2ab to 5695abe Compare August 7, 2023 21:57
@jzheaux jzheaux force-pushed the predicate-issuer-resolver branch from 5695abe to c285716 Compare August 7, 2023 23:56
@jzheaux jzheaux force-pushed the predicate-issuer-resolver branch from c285716 to b77f65b Compare August 8, 2023 15:08
@singhbaljit
Copy link
Contributor Author

Also, you probably want to fixup the Remove Logging of Untrusted Data commit into make logging consistent for Jwt issuer resolvers commit if you want to back port those changes.

@jzheaux jzheaux merged commit fed3de8 into spring-projects:main Aug 8, 2023
@jzheaux
Copy link
Contributor

jzheaux commented Aug 8, 2023

Thanks, @singhbaljit! This is now merged into main.

@jzheaux
Copy link
Contributor

jzheaux commented Aug 8, 2023

Also, the documentation was updated in 3b7e7f6

@singhbaljit singhbaljit deleted the predicate-issuer-resolver branch August 8, 2023 16:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: oauth2 An issue in OAuth2 modules (oauth2-core, oauth2-client, oauth2-resource-server, oauth2-jose) type: enhancement A general enhancement
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Create JwtIssuerReactiveAuthenticationManagerResolver with predicate
3 participants