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()));
}
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);
}
Aggregations