Package org.ametys.web
Class WebAuthenticateAction
- All Implemented Interfaces:
Initializable
,Component
,LogEnabled
,Serviceable
,ThreadSafe
,Action
Special authentication process for web context and aware of front-offices.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.ametys.core.authentication.AuthenticateAction
AuthenticateAction.TOKEN_MODE
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The request attribute to set front office credential provider idstatic final String
The request attribute set to "true" when the request came from the front and was IP checkedstatic final String
The request attribute to set front office user identityFields inherited from class org.ametys.core.authentication.AuthenticateAction
_acceptedUrlPatterns, _authenticateTokenManager, _currentUserProvider, _observationManager, _populationContextHelper, _userManager, _userPopulationDAO, HEADER_TOKEN, PARAMETERS_PARAMETER_TOKEN, PARAMETERS_PARAMETER_TOKEN_CONTEXT, REQUEST_ATTRIBUTE_AUTHENTICATED, REQUEST_ATTRIBUTE_AVAILABLE_USER_POPULATIONS_LIST, REQUEST_ATTRIBUTE_CONTEXTS, REQUEST_ATTRIBUTE_CREDENTIAL_PROVIDER_INDEX, REQUEST_ATTRIBUTE_CREDENTIAL_PROVIDER_LIST, REQUEST_ATTRIBUTE_GRANTED, REQUEST_ATTRIBUTE_INTERNAL_ALLOWED, REQUEST_ATTRIBUTE_INVALID_POPULATION, REQUEST_ATTRIBUTE_LOGIN_URL, REQUEST_ATTRIBUTE_SHOULD_DISPLAY_USER_POPULATIONS_LIST, REQUEST_ATTRIBUTE_USER_POPULATION_ID, REQUEST_PARAMETER_CREDENTIALPROVIDER_INDEX, REQUEST_PARAMETER_POPULATION_NAME, REQUEST_PARAMETER_TOKEN, REQUEST_PARAMETER_TOKEN_CONTEXT, SESSION_CONNECTING_CREDENTIALPROVIDER_INDEX, SESSION_CONNECTING_CREDENTIALPROVIDER_INDEX_LASTBLOCKINGKNOWN, SESSION_CONNECTING_CREDENTIALPROVIDER_MODE, SESSION_CONNECTING_USERPOPULATION_ID, SESSION_CREDENTIALPROVIDER, SESSION_CREDENTIALPROVIDER_MODE, SESSION_USERIDENTITY, SITEMAP_PARAMETER_TOKEN_MODE
Fields inherited from class org.apache.cocoon.acting.ServiceableAction
manager
Fields inherited from class org.apache.cocoon.acting.AbstractAction
EMPTY_MAP
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription_getContexts
(Request request, Parameters parameters) Get the authentication contextprotected CredentialProvider
_getCredentialProviderFromSession
(Request request) Get the credential provider used for the current connectionact
(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters) static CredentialProvider
getCredentialProviderFromSession
(Request request) Get the credential provider used for the current connectionvoid
service
(ServiceManager smanager) Methods inherited from class org.ametys.core.authentication.AuthenticateAction
_acceptedUrl, _doProcess, _getAvailableUserPopulationsIds, _getChosenUserPopulationId, _getCredentialProviderModeFromSession, _getCurrentCredentialProviderIndex, _getCurrentCredentialProviderIndexFromParameter, _getTokenFromRequest, _getUserIdentity, _getUserIdentityFromSession, _handleAuthenticationToken, _handleLogout, _handleWeakPassord, _hasCredentialProviders, _internalRequest, _isCurrentCredentialProviderInBlockingMode, _logLoginEvent, _logLogoutEvent, _preFlightCheck, _prepareUserPopulationsAndCredentialProviders, _process, _resetConnectingStateToSession, _saveConnectingStateToSession, _setUserIdentityInSession, _validateCurrentlyConnectedUser, _validateCurrentlyConnectedUserIsInAuthorizedPopulation, _validateToken, getCredentialProviderModeFromSession, getLoginURL, getLoginURLParameters, getLogoutURL, getUserIdentityFromSession, initialize, renewSession, setUserIdentityInSession, skipCurrentCredentialProvider
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
Field Details
-
REQUEST_ATTRIBUTE_FRONTOFFICE_USERIDENTITY
The request attribute to set front office user identity- See Also:
-
REQUEST_ATTRIBUTE_FRONTOFFICE_CREDENTIALPROVIDER_ID
The request attribute to set front office credential provider id- See Also:
-
REQUEST_ATTRIBUTE_FRONTOFFICE_REQUEST
The request attribute set to "true" when the request came from the front and was IP checked- See Also:
-
-
Constructor Details
-
WebAuthenticateAction
public WebAuthenticateAction()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classServiceableAction
- Throws:
ServiceException
-
_getContexts
Description copied from class:AuthenticateAction
Get the authentication context- Overrides:
_getContexts
in classAuthenticateAction
- Parameters:
request
- The requestparameters
- The action parameters- Returns:
- The context
-
act
public Map act(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters) throws Exception - Specified by:
act
in interfaceAction
- Overrides:
act
in classAuthenticateAction
- Throws:
Exception
-
_getCredentialProviderFromSession
Description copied from class:AuthenticateAction
Get the credential provider used for the current connection- Overrides:
_getCredentialProviderFromSession
in classAuthenticateAction
- Parameters:
request
- The request- Returns:
- The credential provider used or null
-
getCredentialProviderFromSession
Get the credential provider used for the current connection- Parameters:
request
- The request- Returns:
- The credential provider used or null
-