@Component(value="cuba_ExternalUserLoginProvider") public class ExternalUserLoginProvider extends java.lang.Object implements LoginProvider, org.springframework.core.Ordered
Modifier and Type | Field and Description |
---|---|
protected AuthenticationService |
authenticationService |
protected WebAuthConfig |
webAuthConfig |
HIGHEST_PLATFORM_PRECEDENCE, LOWEST_PLATFORM_PRECEDENCE
Constructor and Description |
---|
ExternalUserLoginProvider() |
Modifier and Type | Method and Description |
---|---|
int |
getOrder() |
AuthenticationDetails |
login(Credentials credentials)
Authenticates a user and provides authentication details.
|
protected AuthenticationDetails |
loginMiddleware(TrustedClientCredentials credentials) |
boolean |
supports(java.lang.Class<?> credentialsClass)
Checks if this provider supports passed credentials class or not.
|
@Inject protected AuthenticationService authenticationService
@Inject protected WebAuthConfig webAuthConfig
@Nullable public AuthenticationDetails login(Credentials credentials) throws LoginException
LoginProvider
login
in interface LoginProvider
credentials
- credentialsLoginException
- if authentication failsprotected AuthenticationDetails loginMiddleware(TrustedClientCredentials credentials) throws LoginException
LoginException
public boolean supports(java.lang.Class<?> credentialsClass)
LoginProvider
supports
in interface LoginProvider
credentialsClass
- credentials classCredentials
object.public int getOrder()
getOrder
in interface org.springframework.core.Ordered