mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-09-03 04:26:12 +08:00
Fix imports following upstream change
This commit is contained in:
parent
7d5f3a341f
commit
526fc1f351
@ -35,7 +35,7 @@ import org.springframework.security.config.annotation.web.configuration.WebSecur
|
|||||||
import org.springframework.security.oauth2.client.registration.ClientRegistration;
|
import org.springframework.security.oauth2.client.registration.ClientRegistration;
|
||||||
import org.springframework.security.oauth2.client.registration.ClientRegistrationRepository;
|
import org.springframework.security.oauth2.client.registration.ClientRegistrationRepository;
|
||||||
import org.springframework.security.oauth2.client.registration.InMemoryClientRegistrationRepository;
|
import org.springframework.security.oauth2.client.registration.InMemoryClientRegistrationRepository;
|
||||||
import org.springframework.security.oauth2.client.web.AuthorizationCodeAuthenticationProcessingFilter;
|
import org.springframework.security.oauth2.client.web.AuthorizationCodeAuthenticationFilter;
|
||||||
import org.springframework.security.oauth2.client.web.AuthorizationCodeRequestRedirectFilter;
|
import org.springframework.security.oauth2.client.web.AuthorizationCodeRequestRedirectFilter;
|
||||||
import org.springframework.security.oauth2.core.AuthorizationGrantType;
|
import org.springframework.security.oauth2.core.AuthorizationGrantType;
|
||||||
import org.springframework.security.web.FilterChainProxy;
|
import org.springframework.security.web.FilterChainProxy;
|
||||||
@ -96,13 +96,11 @@ public class OAuth2WebSecurityConfigurationTests {
|
|||||||
List<Filter> filters = (List<Filter>) ReflectionTestUtils
|
List<Filter> filters = (List<Filter>) ReflectionTestUtils
|
||||||
.getField(filterChains.get(0), "filters");
|
.getField(filterChains.get(0), "filters");
|
||||||
List<Filter> oauth2Filters = filters.stream()
|
List<Filter> oauth2Filters = filters.stream()
|
||||||
.filter((
|
.filter((f) -> f instanceof AuthorizationCodeAuthenticationFilter
|
||||||
f) -> f instanceof AuthorizationCodeAuthenticationProcessingFilter
|
|| f instanceof AuthorizationCodeRequestRedirectFilter)
|
||||||
|| f instanceof AuthorizationCodeRequestRedirectFilter)
|
|
||||||
.collect(Collectors.toList());
|
.collect(Collectors.toList());
|
||||||
return oauth2Filters.stream()
|
return oauth2Filters.stream()
|
||||||
.filter((
|
.filter((f) -> f instanceof AuthorizationCodeAuthenticationFilter)
|
||||||
f) -> f instanceof AuthorizationCodeAuthenticationProcessingFilter)
|
|
||||||
.collect(Collectors.toList());
|
.collect(Collectors.toList());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user