Skip to content

Polish BearerTokenAuthenticationConverter #2

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

Open
wants to merge 4 commits into
base: gh-14750
Choose a base branch
from

Conversation

jzheaux
Copy link

@jzheaux jzheaux commented Feb 27, 2025

@franticticktick, I think these changes will get us back on track for this PR. If you agree, please merge and we can continue reviewing your PR together

  • Remove AuthenticationDetailsSource. The filter can continue handling this so that it can be added later
  • Applied an adapter so the configurer and the filter are always utlimately using an AuthenticationConverter
  • Changed bean capture to focus on BearerTokenAuthenticationConverter so the converter doesn't pick up converters for other filters

Issue spring-projectsgh-14750

Max Batischev and others added 2 commits February 27, 2025 15:05
- Remove AuthenticationDetailsSource. The filter can continue handling
  this so that it can be added later
- Applied an adapter so the configurer and the filter are always
utlimately using an AuthenticationConverter
- Changed bean capture to focus on BearerTokenAuthenticationConverter
  so the converter doesn't pick up converters for other filters

Issue spring-projectsgh-14750
- Moved BearerTokenAuthenticationConverter to web.authentication
- Fixed bug in adapter where resolver was called twice

Issue spring-projectsgh-14750
The same bug appeared in a similar adapter in BearerTokenAuthenticationFilter
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant