Package org.apereo.cas.web.flow
Class CheckConsentRequiredAction
java.lang.Object
org.springframework.webflow.action.AbstractAction
org.apereo.cas.web.flow.actions.BaseCasWebflowAction
org.apereo.cas.web.flow.AbstractConsentAction
org.apereo.cas.web.flow.CheckConsentRequiredAction
- All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean,org.springframework.webflow.execution.Action
This is
CheckConsentRequiredAction.- Since:
- 5.1.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringIndicates that webflow should proceed with consent.Fields inherited from class org.apereo.cas.web.flow.AbstractConsentAction
applicationContext, attributeDefinitionStore, authenticationRequestServiceSelectionStrategies, casProperties, consentEngine, servicesManagerFields inherited from class org.springframework.webflow.action.AbstractAction
logger -
Constructor Summary
ConstructorsConstructorDescriptionCheckConsentRequiredAction(org.apereo.cas.services.ServicesManager servicesManager, org.apereo.cas.authentication.AuthenticationServiceSelectionPlan strategies, org.apereo.cas.consent.ConsentEngine consentEngine, org.apereo.cas.configuration.CasConfigurationProperties casProperties, org.apereo.cas.authentication.attribute.AttributeDefinitionStore attributeDefinitionStore, org.springframework.context.ConfigurableApplicationContext applicationContext, org.apereo.cas.consent.ConsentActivationStrategy consentActivationStrategy) -
Method Summary
Modifier and TypeMethodDescriptionprotected StringdetermineConsentEvent(org.springframework.webflow.execution.RequestContext requestContext) Determine consent event string.org.springframework.webflow.execution.EventdoExecute(org.springframework.webflow.execution.RequestContext requestContext) protected StringisConsentRequired(org.apereo.cas.authentication.principal.Service service, org.apereo.cas.services.RegisteredService registeredService, org.apereo.cas.authentication.Authentication authentication, org.springframework.webflow.execution.RequestContext requestContext) Is consent required ?Methods inherited from class org.apereo.cas.web.flow.AbstractConsentAction
getRegisteredServiceForConsent, prepareConsentableAttributes, prepareConsentForRequestContextMethods inherited from class org.apereo.cas.web.flow.actions.BaseCasWebflowAction
isLoginFlowActiveMethods inherited from class org.springframework.webflow.action.AbstractAction
afterPropertiesSet, doPostExecute, doPreExecute, error, error, execute, getActionNameForLogging, getEventFactorySupport, initAction, no, result, result, result, result, success, success, yes
-
Field Details
-
EVENT_ID_CONSENT_REQUIRED
Indicates that webflow should proceed with consent.- See Also:
-
-
Constructor Details
-
CheckConsentRequiredAction
public CheckConsentRequiredAction(org.apereo.cas.services.ServicesManager servicesManager, org.apereo.cas.authentication.AuthenticationServiceSelectionPlan strategies, org.apereo.cas.consent.ConsentEngine consentEngine, org.apereo.cas.configuration.CasConfigurationProperties casProperties, org.apereo.cas.authentication.attribute.AttributeDefinitionStore attributeDefinitionStore, org.springframework.context.ConfigurableApplicationContext applicationContext, org.apereo.cas.consent.ConsentActivationStrategy consentActivationStrategy)
-
-
Method Details
-
doExecute
public org.springframework.webflow.execution.Event doExecute(org.springframework.webflow.execution.RequestContext requestContext) - Specified by:
doExecutein classorg.springframework.webflow.action.AbstractAction
-
determineConsentEvent
protected String determineConsentEvent(org.springframework.webflow.execution.RequestContext requestContext) Determine consent event string.- Parameters:
requestContext- the request context- Returns:
- the string
-
isConsentRequired
protected String isConsentRequired(org.apereo.cas.authentication.principal.Service service, org.apereo.cas.services.RegisteredService registeredService, org.apereo.cas.authentication.Authentication authentication, org.springframework.webflow.execution.RequestContext requestContext) Is consent required ?- Parameters:
service- the serviceregisteredService- the registered serviceauthentication- the authenticationrequestContext- the request context- Returns:
- the event id.
-