Search in sources :

Example 1 with OidcHandlerInterceptorAdapter

use of org.apereo.cas.oidc.web.OidcHandlerInterceptorAdapter in project cas by apereo.

the class OidcConfiguration method oauthInterceptor.

@Bean
public HandlerInterceptorAdapter oauthInterceptor() {
    final OidcProperties oidc = casProperties.getAuthn().getOidc();
    final OidcConstants.DynamicClientRegistrationMode mode = OidcConstants.DynamicClientRegistrationMode.valueOf(StringUtils.defaultIfBlank(oidc.getDynamicClientRegistrationMode(), OidcConstants.DynamicClientRegistrationMode.PROTECTED.name()));
    return new OidcHandlerInterceptorAdapter(requiresAuthenticationAccessTokenInterceptor, requiresAuthenticationAuthorizeInterceptor(), requiresAuthenticationDynamicRegistrationInterceptor(), mode);
}
Also used : OidcProperties(org.apereo.cas.configuration.model.support.oidc.OidcProperties) OidcConstants(org.apereo.cas.oidc.OidcConstants) OidcHandlerInterceptorAdapter(org.apereo.cas.oidc.web.OidcHandlerInterceptorAdapter) ConditionalOnMissingBean(org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean) Bean(org.springframework.context.annotation.Bean)

Aggregations

OidcProperties (org.apereo.cas.configuration.model.support.oidc.OidcProperties)1 OidcConstants (org.apereo.cas.oidc.OidcConstants)1 OidcHandlerInterceptorAdapter (org.apereo.cas.oidc.web.OidcHandlerInterceptorAdapter)1 ConditionalOnMissingBean (org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean)1 Bean (org.springframework.context.annotation.Bean)1