@RefreshScope(proxyMode = ScopedProxyMode.DEFAULT)
        @ConditionalOnMissingBean(name = "oidcCasServerProfileCustomizer")
        @Bean
        public CasServerProfileCustomizer oidcCasServerProfileCustomizer(
            final CasConfigurationProperties casProperties) {
            return (profile, request, response) -> profile.getDetails().put("userDefinedScopes",
                casProperties.getAuthn().getOidc().getCore().getUserDefinedScopes());
        }
This is {@link OidcEndpointsConfiguration}.

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