Class GetTokenFromOIDCAction
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.GetTokenFromOIDCAction
- All Implemented Interfaces:
Component,LogEnabled,Serviceable,ThreadSafe,Action
Action exchanging an OIDC access token for an Ametys mobile app token.
-
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 TypeMethodDescriptionprotected 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, getParameter, serviceMethods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
Constructor Details
-
GetTokenFromOIDCAction
public GetTokenFromOIDCAction()
-
-
Method Details
-
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
-