protected void augmentMultifactorProviderFlowRegistry ( final FlowDefinitionRegistry mfaProviderFlowRegistry ) { val flowIds = mfaProviderFlowRegistry . getFlowDefinitionIds ( ) ; Arrays . stream ( flowIds ) . forEach ( id -> { val flow = ( Flow ) mfaProviderFlowRegistry . getFlowDefinition ( id ) ; if ( flow != null && containsFlowState ( flow , CasWebflowConstants . STATE_ID_REAL_SUBMIT ) ) { val states = getCandidateStatesForMultifactorAuthentication ( ) ; states . forEach ( s -> { val state = getState ( flow , s ) ; ensureEndStateTransitionExists ( state , flow , CasWebflowConstants . TRANSITION_ID_SUCCESS , CasWebflowConstants . STATE_ID_SUCCESS ) ; ensureEndStateTransitionExists ( state , flow , CasWebflowConstants . TRANSITION_ID_SUCCESS_WITH_WARNINGS , CasWebflowConstants . TRANSITION_ID_SUCCESS_WITH_WARNINGS ) ; ensureEndStateTransitionExists ( state , flow , CasWebflowConstants . TRANSITION_ID_UNAVAILABLE , CasWebflowConstants . STATE_ID_MFA_UNAVAILABLE ) ; ensureEndStateTransitionExists ( state , flow , CasWebflowConstants . TRANSITION_ID_DENY , CasWebflowConstants . STATE_ID_MFA_DENIED ) ; } ) ; } } ) ; }
Augment mfa provider flow registry .