code: private Event verify(final RequestContext context, final Credential credential,
                           final MessageContext messageContext) {
          val res = repository.verify(context, credential);
          WebUtils.putPrincipal(context, res.getPrincipal());
          WebUtils.putAcceptableUsagePolicyStatusIntoFlowScope(context, res);
          val eventFactorySupport = new EventFactorySupport();
          return res.isAccepted()
              ? eventFactorySupport.event(this, CasWebflowConstants.TRANSITION_ID_AUP_ACCEPTED)
              : eventFactorySupport.event(this, CasWebflowConstants.TRANSITION_ID_AUP_MUST_ACCEPT);
      }
docs: Verify whether the policy is accepted.
  
  @param context        the context
  @param credential     the credential
  @param messageContext the message context
  @return success if policy is accepted. {@link CasWebflowConstants#TRANSITION_ID_AUP_MUST_ACCEPT} otherwise.