Search in sources :

Example 1 with InweboService

use of org.apereo.cas.support.inwebo.service.InweboService in project cas by apereo.

the class InweboServiceConfiguration method inweboService.

@Bean
@ConditionalOnMissingBean(name = "inweboService")
@RefreshScope(proxyMode = ScopedProxyMode.DEFAULT)
public InweboService inweboService(@Qualifier("inweboConsoleAdmin") final InweboConsoleAdmin inweboConsoleAdmin, final CasConfigurationProperties casProperties) throws Exception {
    val inwebo = casProperties.getAuthn().getMfa().getInwebo();
    val sslContext = SSLUtils.buildSSLContext(inwebo.getClientCertificate());
    return new InweboService(casProperties, inweboConsoleAdmin, sslContext);
}
Also used : lombok.val(lombok.val) InweboService(org.apereo.cas.support.inwebo.service.InweboService) RefreshScope(org.springframework.cloud.context.config.annotation.RefreshScope) ConditionalOnMissingBean(org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean) ConditionalOnMissingBean(org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean) Bean(org.springframework.context.annotation.Bean)

Aggregations

lombok.val (lombok.val)1 InweboService (org.apereo.cas.support.inwebo.service.InweboService)1 ConditionalOnMissingBean (org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean)1 RefreshScope (org.springframework.cloud.context.config.annotation.RefreshScope)1 Bean (org.springframework.context.annotation.Bean)1