-
Notifications
You must be signed in to change notification settings - Fork 6.1k
Description
Expected Behavior
A custom AuthenticationDetailsSource
can be injected into BearerTokenAuthenticationFilter
.
Current Behavior
The authenticationDetailsSource
field is final so it can't.
Context
In order to authenticate with bearer token, I'm writing an AuthenticationManager
having authentication logic using Spring Security.
To do this, I have to put additional information into the details of Authentication and change the authenticationDetailsSource field of org.springframework.security.oauth2.server.resource.web.BearerTokenAuthenticationFilter
class. But the field is declared as final and forced to use WebAuthenticationDetailsSource class.
I think it may be possible to provide a setter so that a newly defined AuthenticationDetailsSource
can be injected from outside, but I am wondering what is forcing it.
Can please you consider providing setter of authenticationDetailsSource
field in BearerTokenAuthenticationFilter
?
version : spring-security 5.3.2.RELEASE