public class BackofficeAuthenticationProvider extends CoreAuthenticationProvider
CoreAuthenticationProvider, additionally checks if user is an employee.CoreAuthenticationProvider.CoreAuthenticationExceptionmessages| Constructor and Description |
|---|
BackofficeAuthenticationProvider() |
| Modifier and Type | Method and Description |
|---|---|
Authentication |
authenticate(Authentication authentication) |
protected void |
checkBackofficeAccess(EmployeeModel employee)
Checks if user has permissions to access Backoffice application.
|
protected Authentication |
coreAuthenticate(Authentication authentication) |
void |
setUserService(UserService userService) |
additionalAuthenticationChecks, afterPropertiesSet, createSuccessAuthentication, getPreAuthenticationChecks, getUserDetailsService, retrieveUser, setMessageSource, setPreAuthenticationChecks, setUserDetailsService, supportspublic Authentication authenticate(Authentication authentication)
throws AuthenticationException
authenticate in class CoreAuthenticationProviderAuthenticationExceptionprotected void checkBackofficeAccess(EmployeeModel employee) throws DisabledException
employee - user to checkDisabledException - if user has no access to Backofficeprotected Authentication coreAuthenticate(Authentication authentication)
public void setUserService(UserService userService)
Copyright © 2018 SAP SE. All Rights Reserved.