@Bean
        @RefreshScope(proxyMode = ScopedProxyMode.DEFAULT)
        @ConditionalOnMissingBean(name = "restOidcJsonWebKeystoreGeneratorService")
        public Supplier<OidcJsonWebKeystoreGeneratorService> restOidcJsonWebKeystoreGeneratorService(
            final CasConfigurationProperties casProperties,
            final ConfigurableApplicationContext applicationContext) {
            val oidc = casProperties.getAuthn().getOidc();
            return BeanSupplier.of(Supplier.class)
                .when(BeanCondition.on("cas.authn.oidc.jwks.rest.url").isUrl().given(applicationContext.getEnvironment()))
                .supply(() -> () -> new OidcRestfulJsonWebKeystoreGeneratorService(oidc))
                .otherwiseProxy()
                .get();
        }
This is {@link OidcJwksConfiguration}.

@author Misagh Moayyed
@since 6.5.0
support/cas-server-support-oidc/src/main/java/org/apereo/cas/config/OidcJwksConfiguration.java