Search in sources :

Example 6 with SamlRequestDto

use of uk.gov.ida.hub.policy.contracts.SamlRequestDto in project verify-hub by alphagov.

the class MatchingServiceResourcesIntegrationTest method anIdpAuthnRequestWasGenerated.

private void anIdpAuthnRequestWasGenerated(SessionId sessionId) throws JsonProcessingException {
    final SamlRequestDto samlRequestDto = new SamlRequestDto("coffee-pasta", idpSsoUri);
    samlEngineStub.setupStubForIdpAuthnRequestGenerate(samlRequestDto);
    URI uri = UriBuilder.fromPath(Urls.PolicyUrls.IDP_AUTHN_REQUEST_RESOURCE).build(sessionId);
    getResponse(policy.uri(uri.toASCIIString()));
}
Also used : SamlRequestDto(uk.gov.ida.hub.policy.contracts.SamlRequestDto) URI(java.net.URI)

Example 7 with SamlRequestDto

use of uk.gov.ida.hub.policy.contracts.SamlRequestDto in project verify-hub by alphagov.

the class SessionResourceAuthnResponseFromIdpIntegrationTests method anAuthnRequestHasBeenSentToAnIdp.

private void anAuthnRequestHasBeenSentToAnIdp(SessionId sessionId) throws JsonProcessingException {
    final SamlRequestDto samlRequestDto = new SamlRequestDto("coffee-pasta", idpSsoUri);
    samlEngineStub.setupStubForIdpAuthnRequestGenerate(samlRequestDto);
    URI uri = UriBuilder.fromPath(Urls.PolicyUrls.IDP_AUTHN_REQUEST_RESOURCE).build(sessionId);
    client.target(policy.uri(uri.toASCIIString())).request().get(Response.class);
}
Also used : SamlRequestDto(uk.gov.ida.hub.policy.contracts.SamlRequestDto) URI(java.net.URI)

Aggregations

SamlRequestDto (uk.gov.ida.hub.policy.contracts.SamlRequestDto)7 AuthnRequestFromHubContainerDto (uk.gov.ida.hub.policy.domain.AuthnRequestFromHubContainerDto)5 URI (java.net.URI)4 Test (org.junit.Test)4 SessionId (uk.gov.ida.hub.policy.domain.SessionId)4 AuthnRequestFromHub (uk.gov.ida.hub.policy.domain.AuthnRequestFromHub)3 IdaAuthnRequestFromHubDto (uk.gov.ida.hub.policy.domain.IdaAuthnRequestFromHubDto)3 AuthnRequestFromHubBuilder.anAuthnRequestFromHub (uk.gov.ida.hub.policy.builder.domain.AuthnRequestFromHubBuilder.anAuthnRequestFromHub)2 SessionId.createNewSessionId (uk.gov.ida.hub.policy.domain.SessionId.createNewSessionId)2 AuthnRequestFromHubContainerDtoBuilder.anAuthnRequestFromHubContainerDto (uk.gov.ida.integrationtest.hub.policy.builders.AuthnRequestFromHubContainerDtoBuilder.anAuthnRequestFromHubContainerDto)2 IdpSelectedState (uk.gov.ida.hub.policy.domain.state.IdpSelectedState)1