@Bean protected Client oktaSdkClient() { ClientBuilder builder = Clients.builder() .setCacheManager(oktaSdkCacheManager()) .setAuthenticationScheme(oktaSdkAuthenticationScheme()) .setConnectionTimeout(oktaClientProperties.getConnectionTimeout()) .setClientCredentials(oktaSdkClientCredentials()) .setOrgUrl(oktaClientProperties.getOrgUrl()); Proxy proxy = oktaSdkProxy(); if (proxy != null) { builder.setProxy(oktaSdkProxy()); } return builder.build(); }
@Bean protected Client oktaSdkClient() { ClientBuilder builder = Clients.builder() .setCacheManager(oktaSdkCacheManager()) .setAuthenticationScheme(oktaSdkAuthenticationScheme()) .setConnectionTimeout(oktaClientProperties.getConnectionTimeout()) .setClientCredentials(oktaSdkClientCredentials()) .setOrgUrl(oktaClientProperties.getOrgUrl()); Proxy proxy = oktaSdkProxy(); if (proxy != null) { builder.setProxy(oktaSdkProxy()); } return builder.build(); }