Class GetTokenFromFormAction
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.cocoon.acting.AbstractAction
org.apache.cocoon.acting.ServiceableAction
org.ametys.plugins.mobileapp.action.AbstractGetTokenAction
org.ametys.plugins.mobileapp.action.GetTokenFromFormAction
- All Implemented Interfaces:
Component,LogEnabled,Serviceable,ThreadSafe,Action
Authenticates a user based on login and password form parameters.
-
Field Summary
Fields inherited from class org.ametys.plugins.mobileapp.action.AbstractGetTokenAction
_authenticationTokenManager, _currentUserProvider, _jsonUtils, _populationContextHelper, _userPopulationDAOFields inherited from class org.apache.cocoon.acting.ServiceableAction
managerFields inherited from class org.apache.cocoon.acting.AbstractAction
EMPTY_MAP -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidservice(ServiceManager smanager) protected UserIdentitytryConnect(Map<String, Object> params, Request request, String context, UserPopulation userPopulation, CredentialProvider credentialProvider, int credentialProviderIndex) Try to authenticate the current mobile userMethods inherited from class org.ametys.plugins.mobileapp.action.AbstractGetTokenAction
act, getParameterMethods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
Constructor Details
-
GetTokenFromFormAction
public GetTokenFromFormAction()
-
-
Method Details
-
service
- Specified by:
servicein interfaceServiceable- Overrides:
servicein classAbstractGetTokenAction- Throws:
ServiceException
-
tryConnect
protected UserIdentity tryConnect(Map<String, Object> params, Request request, String context, UserPopulation userPopulation, CredentialProvider credentialProvider, int credentialProviderIndex) Description copied from class:AbstractGetTokenActionTry to authenticate the current mobile user- Specified by:
tryConnectin classAbstractGetTokenAction- Parameters:
params- the parameters issued by the mobile apprequest- the authentication requestcontext- the population contextuserPopulation- the populationcredentialProvider- theCredentialProvidercredentialProviderIndex- the index of the credentialProvider in the given userPopulation- Returns:
- the authenticated user, if any
-