Search in sources :

Example 1 with InMemoryServerAssociationStore

use of org.openid4java.server.InMemoryServerAssociationStore in project cas by apereo.

the class OpenIdConfiguration method serverManager.

@RefreshScope
@Bean
public ServerManager serverManager() {
    final ServerManager manager = new ServerManager();
    manager.setOPEndpointUrl(casProperties.getServer().getLoginUrl());
    manager.setEnforceRpId(casProperties.getAuthn().getOpenid().isEnforceRpId());
    manager.setSharedAssociations(new InMemoryServerAssociationStore());
    LOGGER.info("Creating openid server manager with OP endpoint [{}]", casProperties.getServer().getLoginUrl());
    return manager;
}
Also used : ServerManager(org.openid4java.server.ServerManager) InMemoryServerAssociationStore(org.openid4java.server.InMemoryServerAssociationStore) RefreshScope(org.springframework.cloud.context.config.annotation.RefreshScope) ConditionalOnMissingBean(org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean) Bean(org.springframework.context.annotation.Bean)

Aggregations

InMemoryServerAssociationStore (org.openid4java.server.InMemoryServerAssociationStore)1 ServerManager (org.openid4java.server.ServerManager)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