Skip to content

AuthenticationProviderBeanDefinitionParser does not support UserDetailsPasswordService #7746

Open
@hbourada

Description

@hbourada

Summary

<security:authentication-provider> XML configuration element is missing a user-details-password-service child or attribute to set a UserDetailsPasswordService property

Actual Behavior

No means to set UserDetailsPasswordService by XML configuration for <security:authentication-provider> and DaoAuthenticationProvider is missing a verification in doAfterPropertiesSet to check if userDetailsService instanceof UserDetailsPasswordService to set also userDetailsPasswordService

Expected Behavior

Add an xml child element or an attribute in <security:authentication-provider>

Configuration

<security:authentication-manager id="authenticationManager">
	<security:authentication-provider>
		<security:user-service data-source-ref="dataSource"/>
                 <security:password-encoder ref="delegatingPasswordEncoder"/>
                 <user-details-password-service ref="myUserDetailsPasswordService" />
	</security:authentication-provider>
</security:authentication-manager>

Version

spring-security-5.2.xsd

Sample

Metadata

Metadata

Assignees

No one assigned

    Labels

    in: configAn issue in spring-security-configstatus: ideal-for-contributionAn issue that we actively are looking for someone to help us withtype: enhancementA general enhancement

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions