Class ActivitiAuthenticator
java.lang.Object
org.springframework.extensions.webscripts.connector.AbstractAuthenticator
org.springframework.extensions.webscripts.connector.ActivitiAuthenticator
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware,Authenticator
Activiti API endpoint authenticator.
Used to connect to
https://activiti.alfresco.com/activiti-app/appendpoint.
This connector will post a URL encoded form with the login credentials to:
https://activiti.alfresco.com/activiti-app/app/authenticationcontent type: application/x-www-form-urlencoded
Response should be a 200 OK with no body content and ACTIVITI_REMEMBER_ME Cookie header set.
- Author:
- Kevin Roast
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionauthenticate(String endpoint, Credentials credentials, ConnectorSession connectorSession) Authenticate against the given Endpoint URL with the supplied CredentialsbooleanisAuthenticated(String endpoint, ConnectorSession connectorSession) Returns whether the current connector session has been authenticated or notMethods inherited from class org.springframework.extensions.webscripts.connector.AbstractAuthenticator
buildRemoteClient, getConnectorService, processResponse, setApplicationContext
-
Constructor Details
-
ActivitiAuthenticator
public ActivitiAuthenticator()
-
-
Method Details
-
authenticate
public ConnectorSession authenticate(String endpoint, Credentials credentials, ConnectorSession connectorSession) throws AuthenticationException Description copied from interface:AuthenticatorAuthenticate against the given Endpoint URL with the supplied Credentials- Returns:
- The connector session instance
- Throws:
AuthenticationException- on error
-
isAuthenticated
Description copied from interface:AuthenticatorReturns whether the current connector session has been authenticated or not- Parameters:
endpoint- StringconnectorSession- ConnectorSession- Returns:
- boolean
-