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);
}
Aggregations