use of org.wso2.carbon.identity.sso.saml.stub.types.SAMLSSOServiceProviderInfoDTO in project product-is by wso2.
the class AbstractIdentityFederationTestCase method createSAML2WebSSOConfiguration.
public String createSAML2WebSSOConfiguration(int portOffset, SAMLSSOServiceProviderDTO samlssoServiceProviderDTO) throws Exception {
samlSSOConfigServiceClients.get(portOffset).addServiceProvider(samlssoServiceProviderDTO);
SAMLSSOServiceProviderInfoDTO serviceProviders = samlSSOConfigServiceClients.get(portOffset).getServiceProviders();
if (serviceProviders != null && serviceProviders.getServiceProviders() != null) {
for (SAMLSSOServiceProviderDTO serviceProvider : serviceProviders.getServiceProviders()) {
if (samlssoServiceProviderDTO.getIssuer().equals(serviceProvider.getIssuer())) {
return serviceProvider.getAttributeConsumingServiceIndex();
}
}
}
return null;
}
Aggregations