The Kotlin DSL should allow setting a custom AuthenticationDetailsSource when using Form Login

http {
    formLogin {
        authenticationDetailsSource = AUTHENTICATION_DETAILS_SOURCE
   }
}