Currently, the AuthenticationDetailsSource can only be configured for httpBasic and x509. In theory, the same support for formLogin, rememberMe, and oauth2Login could also be added. It would be great if we can have the full coverage for this configuration.
Aside from missing configurations in Kotlin DSL, I personally found it is seemingly impossible to extend the existing Kotlin DSL to add our own in cases like this.
Comment From: eleftherias
Thanks for pointing that out @unlimitedsola.
I think it makes sense to add support for setting AuthenticationDetailsSource in the form login and OAuth2 login Kotlin DSL, in order to align with the Java DSL.
I have split this issue into #9837 and #9838 for each of those features.
I'm not sure how we would add it to the remember me DSL since the RememberMeAuthenticationFilter does not use an AuthenticationDetailsSource.
Could you share your idea about how that may work?
Additionally, are you interested in submitting a pull request for #9837 or #9838?
Comment From: unlimitedsola
For remember me DSL, as the AbstractRememberMeServices has the option to configure authenticationDetailsSource, I think it is viable to set the authenticationDetailsSource just like how we configure the rememberMeCookieName (in code at: RememberMeConfigurer#getRememberMeServices)
For providing a PR: I'd very much like to provide a PR but I can't guarantee I will have time for this in the near future. If someone interested in this, feel free to pick it up :)