static <B extends HttpSecurityBuilder<B>> OAuth2AuthorizedClientRepository getAuthorizedClientRepository(B builder) { OAuth2AuthorizedClientRepository authorizedClientRepository = builder.getSharedObject(OAuth2AuthorizedClientRepository.class); if (authorizedClientRepository == null) { authorizedClientRepository = getAuthorizedClientRepositoryBean(builder); if (authorizedClientRepository == null) { authorizedClientRepository = new AuthenticatedPrincipalOAuth2AuthorizedClientRepository( getAuthorizedClientService((builder))); } builder.setSharedObject(OAuth2AuthorizedClientRepository.class, authorizedClientRepository); } return authorizedClientRepository; }
static <B extends HttpSecurityBuilder<B>> OAuth2AuthorizedClientRepository getAuthorizedClientRepository(B builder) { OAuth2AuthorizedClientRepository authorizedClientRepository = builder.getSharedObject(OAuth2AuthorizedClientRepository.class); if (authorizedClientRepository == null) { authorizedClientRepository = getAuthorizedClientRepositoryBean(builder); if (authorizedClientRepository == null) { authorizedClientRepository = new AuthenticatedPrincipalOAuth2AuthorizedClientRepository( getAuthorizedClientService((builder))); } builder.setSharedObject(OAuth2AuthorizedClientRepository.class, authorizedClientRepository); } return authorizedClientRepository; }
static <B extends HttpSecurityBuilder<B>> OAuth2AuthorizedClientRepository getAuthorizedClientRepository(B builder) { OAuth2AuthorizedClientRepository authorizedClientRepository = builder.getSharedObject(OAuth2AuthorizedClientRepository.class); if (authorizedClientRepository == null) { authorizedClientRepository = getAuthorizedClientRepositoryBean(builder); if (authorizedClientRepository == null) { authorizedClientRepository = new AuthenticatedPrincipalOAuth2AuthorizedClientRepository( getAuthorizedClientService((builder))); } builder.setSharedObject(OAuth2AuthorizedClientRepository.class, authorizedClientRepository); } return authorizedClientRepository; }