@Test public void testLoadBalancedResourceDetails() { LoadBalancedResourceDetails details = config.loadBalancedResourceDetails(null); assertThat(details.getAccessTokenUri()).isEqualTo(authorization.getAccessTokenUri()); assertThat(details.getTokenServiceId()).isEqualTo(authorization.getTokenServiceId()); assertThat(details.getClientId()).isEqualTo(authorization.getClientId()); assertThat(details.getClientSecret()).isEqualTo(authorization.getClientSecret()); }
@Bean public LoadBalancedResourceDetails loadBalancedResourceDetails(LoadBalancerClient loadBalancerClient) { LoadBalancedResourceDetails loadBalancedResourceDetails = new LoadBalancedResourceDetails(loadBalancerClient); JHipsterProperties.Security.ClientAuthorization clientAuthorization = jHipsterProperties.getSecurity() .getClientAuthorization(); loadBalancedResourceDetails.setAccessTokenUri(clientAuthorization.getAccessTokenUri()); loadBalancedResourceDetails.setTokenServiceId(clientAuthorization.getTokenServiceId()); loadBalancedResourceDetails.setClientId(clientAuthorization.getClientId()); loadBalancedResourceDetails.setClientSecret(clientAuthorization.getClientSecret()); return loadBalancedResourceDetails; }
UaaAutoConfiguration { @Bean public LoadBalancedResourceDetails loadBalancedResourceDetails(LoadBalancerClient loadBalancerClient) { LoadBalancedResourceDetails loadBalancedResourceDetails = new LoadBalancedResourceDetails(loadBalancerClient); JHipsterProperties.Security.ClientAuthorization clientAuthorization = jHipsterProperties.getSecurity() .getClientAuthorization(); loadBalancedResourceDetails.setAccessTokenUri(clientAuthorization.getAccessTokenUri()); loadBalancedResourceDetails.setTokenServiceId(clientAuthorization.getTokenServiceId()); loadBalancedResourceDetails.setClientId(clientAuthorization.getClientId()); loadBalancedResourceDetails.setClientSecret(clientAuthorization.getClientSecret()); return loadBalancedResourceDetails; } }
UaaAutoConfiguration { @Bean public LoadBalancedResourceDetails loadBalancedResourceDetails(LoadBalancerClient loadBalancerClient) { LoadBalancedResourceDetails loadBalancedResourceDetails = new LoadBalancedResourceDetails(loadBalancerClient); JHipsterProperties.Security.ClientAuthorization clientAuthorization = jHipsterProperties.getSecurity() .getClientAuthorization(); loadBalancedResourceDetails.setAccessTokenUri(clientAuthorization.getAccessTokenUri()); loadBalancedResourceDetails.setTokenServiceId(clientAuthorization.getTokenServiceId()); loadBalancedResourceDetails.setClientId(clientAuthorization.getClientId()); loadBalancedResourceDetails.setClientSecret(clientAuthorization.getClientSecret()); return loadBalancedResourceDetails; } UaaAutoConfiguration(JHipsterProperties jHipsterProperties); }
UaaAutoConfiguration { @Bean public LoadBalancedResourceDetails loadBalancedResourceDetails(LoadBalancerClient loadBalancerClient) { LoadBalancedResourceDetails loadBalancedResourceDetails = new LoadBalancedResourceDetails(loadBalancerClient); JHipsterProperties.Security.ClientAuthorization clientAuthorization = jHipsterProperties.getSecurity() .getClientAuthorization(); loadBalancedResourceDetails.setAccessTokenUri(clientAuthorization.getAccessTokenUri()); loadBalancedResourceDetails.setTokenServiceId(clientAuthorization.getTokenServiceId()); loadBalancedResourceDetails.setClientId(clientAuthorization.getClientId()); loadBalancedResourceDetails.setClientSecret(clientAuthorization.getClientSecret()); return loadBalancedResourceDetails; } UaaAutoConfiguration(JHipsterProperties jHipsterProperties); @Bean LoadBalancedResourceDetails loadBalancedResourceDetails(LoadBalancerClient loadBalancerClient); }
UaaAutoConfiguration { @Bean public LoadBalancedResourceDetails loadBalancedResourceDetails(LoadBalancerClient loadBalancerClient) { LoadBalancedResourceDetails loadBalancedResourceDetails = new LoadBalancedResourceDetails(loadBalancerClient); JHipsterProperties.Security.ClientAuthorization clientAuthorization = jHipsterProperties.getSecurity() .getClientAuthorization(); loadBalancedResourceDetails.setAccessTokenUri(clientAuthorization.getAccessTokenUri()); loadBalancedResourceDetails.setTokenServiceId(clientAuthorization.getTokenServiceId()); loadBalancedResourceDetails.setClientId(clientAuthorization.getClientId()); loadBalancedResourceDetails.setClientSecret(clientAuthorization.getClientSecret()); return loadBalancedResourceDetails; } UaaAutoConfiguration(JHipsterProperties jHipsterProperties); @Bean LoadBalancedResourceDetails loadBalancedResourceDetails(LoadBalancerClient loadBalancerClient);  }