use of org.springframework.security.saml.provider.service.config.LocalServiceProviderConfiguration in project service-authorization by reportportal.
the class SamlProvidersReloadEventHandler method onApplicationEvent.
@Override
public void onApplicationEvent(SamlProvidersReloadEvent event) {
final IntegrationType integrationType = event.getIntegrationType();
final List<Integration> integrations = integrationRepository.findAllGlobalByType(integrationType);
LocalServiceProviderConfiguration serviceProvider = samlConfiguration.getServiceProvider();
serviceProvider.getProviders().clear();
serviceProvider.getProviders().addAll(SamlConverter.TO_EXTERNAL_PROVIDER_CONFIG.apply(integrations));
}
use of org.springframework.security.saml.provider.service.config.LocalServiceProviderConfiguration in project service-authorization by reportportal.
the class SamlServiceProviderConfiguration method serviceProviderConfiguration.
private LocalServiceProviderConfiguration serviceProviderConfiguration() {
LocalServiceProviderConfiguration serviceProviderConfiguration = new LocalServiceProviderConfigurationDelegate(integrationTypeRepository);
serviceProviderConfiguration.setSignRequests(signedRequests).setWantAssertionsSigned(signedRequests).setEntityId(entityId).setAlias(keyAlias).setSignMetadata(signedRequests).setSingleLogoutEnabled(true).setNameIds(Arrays.asList(NameID.EMAIL, NameID.PERSISTENT, NameID.UNSPECIFIED)).setKeys(rotatingKeys()).setProviders(providers()).setPrefix(prefix).setBasePath(basePath);
return serviceProviderConfiguration;
}
Aggregations