Search in sources :

Example 1 with EidasAuthnRequestFromHub

use of uk.gov.ida.saml.hub.domain.EidasAuthnRequestFromHub in project verify-hub by alphagov.

the class CountryAuthnRequestGeneratorService method generateSaml.

public SamlRequestDto generateSaml(IdaAuthnRequestFromHubDto idaAuthnRequestFromHubDto) {
    URI ssoUri = idaAuthnRequestFromHubDto.getoverriddenSsoUrl() != null ? idaAuthnRequestFromHubDto.getoverriddenSsoUrl() : countrySingleSignOnServiceHelper.getSingleSignOn(idaAuthnRequestFromHubDto.getIdpEntityId());
    EidasAuthnRequestFromHub eidasAuthnRequestFromHub = eidasAuthnRequestTranslator.getEidasAuthnRequestFromHub(idaAuthnRequestFromHubDto, ssoUri, hubEidasEntityId);
    String request = eidasRequestStringTransformer.apply(eidasAuthnRequestFromHub);
    return new SamlRequestDto(request, ssoUri);
}
Also used : EidasAuthnRequestFromHub(uk.gov.ida.saml.hub.domain.EidasAuthnRequestFromHub) SamlRequestDto(uk.gov.ida.hub.samlengine.domain.SamlRequestDto) URI(java.net.URI)

Aggregations

URI (java.net.URI)1 SamlRequestDto (uk.gov.ida.hub.samlengine.domain.SamlRequestDto)1 EidasAuthnRequestFromHub (uk.gov.ida.saml.hub.domain.EidasAuthnRequestFromHub)1