mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-06-24 21:12:18 +00:00
Remove typo in method name "getAuthoritiesPopulator"
This commit is contained in:
parent
442c51bb30
commit
4930657e57
@ -200,10 +200,6 @@ public class LdapAuthenticationProvider extends AbstractUserDetailsAuthenticatio
|
|||||||
return user.createUserDetails();
|
return user.createUserDetails();
|
||||||
}
|
}
|
||||||
|
|
||||||
protected LdapAuthoritiesPopulator getAuthoritiesPoulator() {
|
|
||||||
return getAuthoritiesPopulator();
|
|
||||||
}
|
|
||||||
|
|
||||||
protected UserDetails retrieveUser(String username, UsernamePasswordAuthenticationToken authentication)
|
protected UserDetails retrieveUser(String username, UsernamePasswordAuthenticationToken authentication)
|
||||||
throws AuthenticationException {
|
throws AuthenticationException {
|
||||||
if (!StringUtils.hasLength(username)) {
|
if (!StringUtils.hasLength(username)) {
|
||||||
|
@ -98,7 +98,7 @@ public class LdapAuthenticationProviderTests extends TestCase {
|
|||||||
LdapAuthenticationProvider ldapProvider = new LdapAuthenticationProvider(new MockAuthenticator(),
|
LdapAuthenticationProvider ldapProvider = new LdapAuthenticationProvider(new MockAuthenticator(),
|
||||||
new MockAuthoritiesPopulator());
|
new MockAuthoritiesPopulator());
|
||||||
|
|
||||||
assertNotNull(ldapProvider.getAuthoritiesPoulator());
|
assertNotNull(ldapProvider.getAuthoritiesPopulator());
|
||||||
|
|
||||||
UsernamePasswordAuthenticationToken authRequest = new UsernamePasswordAuthenticationToken("bob", "bobspassword");
|
UsernamePasswordAuthenticationToken authRequest = new UsernamePasswordAuthenticationToken("bob", "bobspassword");
|
||||||
UserDetails user = ldapProvider.retrieveUser("bob", authRequest);
|
UserDetails user = ldapProvider.retrieveUser("bob", authRequest);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user