Search in sources :

Example 16 with IdpSelectedState

use of uk.gov.ida.hub.policy.domain.state.IdpSelectedState in project verify-hub by alphagov.

the class IdpSelectedStateController method handleIdpSelected.

@Override
public void handleIdpSelected(String idpEntityId, String principalIpAddress, boolean registering, LevelOfAssurance requestedLoa) {
    IdpSelectedState idpSelectedState = IdpSelector.buildIdpSelectedState(state, idpEntityId, registering, requestedLoa, transactionsConfigProxy, identityProvidersConfigProxy);
    stateTransitionAction.transitionTo(idpSelectedState);
    hubEventLogger.logIdpSelectedEvent(idpSelectedState, principalIpAddress);
}
Also used : IdpSelectedState(uk.gov.ida.hub.policy.domain.state.IdpSelectedState)

Example 17 with IdpSelectedState

use of uk.gov.ida.hub.policy.domain.state.IdpSelectedState in project verify-hub by alphagov.

the class RequesterErrorStateController method handleIdpSelected.

@Override
public void handleIdpSelected(String idpEntityId, String principalIpAddress, boolean registering, LevelOfAssurance requestedLoa) {
    IdpSelectedState idpSelectedState = IdpSelector.buildIdpSelectedState(state, idpEntityId, registering, requestedLoa, transactionsConfigProxy, identityProvidersConfigProxy);
    stateTransitionAction.transitionTo(idpSelectedState);
    hubEventLogger.logIdpSelectedEvent(idpSelectedState, principalIpAddress);
}
Also used : IdpSelectedState(uk.gov.ida.hub.policy.domain.state.IdpSelectedState)

Aggregations

IdpSelectedState (uk.gov.ida.hub.policy.domain.state.IdpSelectedState)17 Test (org.junit.Test)10 IdpConfigDto (uk.gov.ida.hub.policy.domain.IdpConfigDto)4 IdpSelectedStateBuilder.anIdpSelectedState (uk.gov.ida.hub.policy.builder.state.IdpSelectedStateBuilder.anIdpSelectedState)2 EventDetailsKey (uk.gov.ida.eventsink.EventDetailsKey)1 SamlRequestDto (uk.gov.ida.hub.policy.contracts.SamlRequestDto)1 AuthnRequestFromHubContainerDto (uk.gov.ida.hub.policy.domain.AuthnRequestFromHubContainerDto)1 EventSinkHubEvent (uk.gov.ida.hub.policy.domain.EventSinkHubEvent)1 LevelOfAssurance (uk.gov.ida.hub.policy.domain.LevelOfAssurance)1 ResponseFromHub (uk.gov.ida.hub.policy.domain.ResponseFromHub)1 SessionId (uk.gov.ida.hub.policy.domain.SessionId)1 StateController (uk.gov.ida.hub.policy.domain.StateController)1 SessionStartedState (uk.gov.ida.hub.policy.domain.state.SessionStartedState)1 AuthnRequestFromHubContainerDtoBuilder.anAuthnRequestFromHubContainerDto (uk.gov.ida.integrationtest.hub.policy.builders.AuthnRequestFromHubContainerDtoBuilder.anAuthnRequestFromHubContainerDto)1