/** * Sets the service for authorized client(s). * * @param authorizedClientService the authorized client service * @return the {@link OAuth2LoginConfigurer} for further configuration */ public OAuth2LoginConfigurer<B> authorizedClientService(OAuth2AuthorizedClientService authorizedClientService) { Assert.notNull(authorizedClientService, "authorizedClientService cannot be null"); this.authorizedClientRepository(new AuthenticatedPrincipalOAuth2AuthorizedClientRepository(authorizedClientService)); return this; }
/** * Sets the service for authorized client(s). * * @param authorizedClientService the authorized client service * @return the {@link OAuth2LoginConfigurer} for further configuration */ public OAuth2LoginConfigurer<B> authorizedClientService(OAuth2AuthorizedClientService authorizedClientService) { Assert.notNull(authorizedClientService, "authorizedClientService cannot be null"); this.authorizedClientRepository(new AuthenticatedPrincipalOAuth2AuthorizedClientRepository(authorizedClientService)); return this; }
/** * Sets the service for authorized client(s). * * @param authorizedClientService the authorized client service * @return the {@link OAuth2LoginConfigurer} for further configuration */ public OAuth2LoginConfigurer<B> authorizedClientService(OAuth2AuthorizedClientService authorizedClientService) { Assert.notNull(authorizedClientService, "authorizedClientService cannot be null"); this.authorizedClientRepository(new AuthenticatedPrincipalOAuth2AuthorizedClientRepository(authorizedClientService)); return this; }