Announcement Announcement Module
Collapse
No announcement yet.
3.1.3 stopped working with a custom password encoder Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 3.1.3 stopped working with a custom password encoder

    I have my authentication manager configured with a custom password encoder.

    Up until 3.1.2 it worked, but with 3.1.3 I get this error:

    Code:
    Caused by: org.springframework.beans.factory.BeanCreationException:
    Error creating bean with name 'org.springframework.security.authentication.dao.DaoAuthenticationProvider#0':
    Error setting property values;
    nested exception is org.springframework.beans.PropertyBatchUpdateException;
    nested PropertyAccessExceptions (1) are:
    PropertyAccessException 1: org.springframework.beans.MethodInvocationException:
    Property 'passwordEncoder' threw exception;
    nested exception is java.lang.IllegalArgumentException:
    The validated expression is false
    The new DaoAuthenticationProvider in 3.1.3 has two setPasswordEncoder:

    Code:
    public void setPasswordEncoder(Object passwordEncoder)
    private void setPasswordEncoder(PasswordEncoder passwordEncoder)
    while the old only had the one with the Object parameter.

    May be it has something to do with the error, I don't know... (my password encoder implements PasswordEncoder)
Working...
X