@Bean
    @RefreshScope(proxyMode = ScopedProxyMode.DEFAULT)
    public PrincipalProvisioner principalProvisioner(
        @Qualifier("oktaProvisioningClient")
        final Client oktaProvisioningClient,
        final CasConfigurationProperties casProperties,
        final ConfigurableApplicationContext applicationContext) {
        return BeanSupplier.of(PrincipalProvisioner.class)
            .when(CONDITION.given(applicationContext.getEnvironment()))
            .supply(() -> new OktaPrincipalProvisioner(oktaProvisioningClient, casProperties.getAuthn().getOkta().getProvisioning()))
            .otherwiseProxy()
            .get();
    }
This is {@link OktaProvisioningConfiguration}.

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