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

public class CheckConsentRequiredAction extends AbstractConsentAction
Since:
5.1.0
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Indicates that webflow should proceed with consent.

    Fields inherited from class org.springframework.webflow.action.AbstractAction

    logger
  • Constructor Summary

    Constructors
    Constructor
    Description
    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 Summary

    Modifier and Type
    Method
    Description
    protected String
    determineConsentEvent(org.springframework.webflow.execution.RequestContext requestContext)
    Determine consent event string.
    org.springframework.webflow.execution.Event
    doExecute(org.springframework.webflow.execution.RequestContext requestContext)
     
    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 ?

    Methods inherited from class org.apereo.cas.web.flow.actions.BaseCasWebflowAction

    isLoginFlowActive

    Methods 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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • 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:
      doExecute in class org.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 service
      registeredService - the registered service
      authentication - the authentication
      requestContext - the request context
      Returns:
      the event id.