Manuel Jordan (Migrated from SEC-2809) said:
In the 2.2.1. In-Memory Authentication section has the following code
<user-service id="userDetailsService" properties="users.properties"/>
working with
jimi=jimispassword,ROLE_USER,ROLE_ADMIN,enabled
bob=bobspassword,ROLE_USER,enabled
But there is no an equivalent for JavaConfig.
Comment From: eleftherias
The reference documentation now has Javaconfig and XML equivalents for all configurations.
Anyone looking to configure a UserDetailsService with properties can use:
new InMemoryUserDetailsManager(properties);
where properties is an instance of java.util.Properties.