@Component public class LoginAuthProvider extends Object implements org.springframework.security.authentication.AuthenticationProvider
AuthenticationProvider
to validate user credentials against OneOps database or
AD/LDAP. AuthenticationSuccessHandler
is invoked upon successful authentication.Constructor and Description |
---|
LoginAuthProvider(LdapUserService ldapUserService) |
Modifier and Type | Method and Description |
---|---|
org.springframework.security.core.Authentication |
authenticate(org.springframework.security.core.Authentication auth)
Performs authentication.
|
boolean |
supports(Class<?> authentication) |
public LoginAuthProvider(LdapUserService ldapUserService)
public org.springframework.security.core.Authentication authenticate(org.springframework.security.core.Authentication auth) throws org.springframework.security.core.AuthenticationException
authenticate
in interface org.springframework.security.authentication.AuthenticationProvider
auth
- UsernamePasswordAuthenticationToken.org.springframework.security.core.AuthenticationException
- if authentication fails.public boolean supports(Class<?> authentication)
supports
in interface org.springframework.security.authentication.AuthenticationProvider
Copyright © 2018 Walmart, Inc.. All rights reserved.