@ConditionalOnMissingBean(name = "oktaAuthenticationClient")
        @Bean
        @RefreshScope(proxyMode = ScopedProxyMode.DEFAULT)
        public AuthenticationClient oktaAuthenticationClient(
            final ConfigurableApplicationContext applicationContext,
            final CasConfigurationProperties casProperties) {
            return BeanSupplier.of(AuthenticationClient.class)
                .when(CONDITION.given(applicationContext.getEnvironment()))
                .supply(() -> {
                    val properties = casProperties.getAuthn().getOkta();
                    return OktaConfigurationFactory.buildAuthenticationClient(properties);
                })
                .otherwiseProxy()
                .get();
        }
This is {@link OktaAuthenticationConfiguration}.

@author Misagh Moayyed
@since 6.2.0
support/cas-server-support-okta-authentication/src/main/java/org/apereo/cas/config/OktaAuthenticationConfiguration.java