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