Skip to content

userDetailsPasswordService cannot be null error when using ReactiveUserDetailsService #17986

@matthew-js-porter

Description

@matthew-js-porter

Describe the bug
When using Spring Security 7.0.0-M3 and defining a ReactiveUserDetailsService the application
fails to start with error java.lang.IllegalArgumentException: userDetailsPasswordService cannot be null

To Reproduce

  • start.spring.io and generate a new 4.0.0 project with webflux and security
  • Add SecurityWebFilterChain and ReactiveUserDetailsService beans.
  • start the application and observe the error

Expected behavior
The application should start and default a userDetailsPasswordService.

Sample
Sample Repository

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions