Skip to content

Commit 37a1602

Browse files
committed
Adjust OAuth2 Resource Server packaging
Closes gh-7349
1 parent 46696a9 commit 37a1602

File tree

30 files changed

+30
-36
lines changed

30 files changed

+30
-36
lines changed

config/src/main/java/org/springframework/security/config/annotation/web/HttpSecurityBuilder.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
import org.springframework.security.config.annotation.SecurityConfigurer;
2424
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
2525
import org.springframework.security.core.userdetails.UserDetailsService;
26+
import org.springframework.security.oauth2.server.resource.web.authentication.BearerTokenAuthenticationFilter;
2627
import org.springframework.security.openid.OpenIDAuthenticationFilter;
2728
import org.springframework.security.web.DefaultSecurityFilterChain;
2829
import org.springframework.security.web.access.ExceptionTranslationFilter;
@@ -141,7 +142,7 @@ public interface HttpSecurityBuilder<H extends HttpSecurityBuilder<H>>
141142
* <li>{@link org.springframework.security.web.authentication.ui.DefaultLogoutPageGeneratingFilter}</li>
142143
* <li>{@link ConcurrentSessionFilter}</li>
143144
* <li>{@link DigestAuthenticationFilter}</li>
144-
* <li>{@link org.springframework.security.oauth2.server.resource.web.BearerTokenAuthenticationFilter}</li>
145+
* <li>{@link BearerTokenAuthenticationFilter}</li>
145146
* <li>{@link BasicAuthenticationFilter}</li>
146147
* <li>{@link RequestCacheAwareFilter}</li>
147148
* <li>{@link SecurityContextHolderAwareRequestFilter}</li>

config/src/main/java/org/springframework/security/config/annotation/web/builders/FilterOrderRegistration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ final class FilterOrderRegistration {
103103
put(ConcurrentSessionFilter.class, order.next());
104104
put(DigestAuthenticationFilter.class, order.next());
105105
this.filterToOrder.put(
106-
"org.springframework.security.oauth2.server.resource.web.BearerTokenAuthenticationFilter",
106+
"org.springframework.security.oauth2.server.resource.web.authentication.BearerTokenAuthenticationFilter",
107107
order.next());
108108
put(BasicAuthenticationFilter.class, order.next());
109109
put(RequestCacheAwareFilter.class, order.next());

config/src/main/java/org/springframework/security/config/annotation/web/configurers/oauth2/server/resource/OAuth2ResourceServerConfigurer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,10 @@
5050
import org.springframework.security.oauth2.server.resource.introspection.OpaqueTokenIntrospector;
5151
import org.springframework.security.oauth2.server.resource.introspection.SpringOpaqueTokenIntrospector;
5252
import org.springframework.security.oauth2.server.resource.web.BearerTokenAuthenticationEntryPoint;
53-
import org.springframework.security.oauth2.server.resource.web.BearerTokenAuthenticationFilter;
5453
import org.springframework.security.oauth2.server.resource.web.BearerTokenResolver;
5554
import org.springframework.security.oauth2.server.resource.web.DefaultBearerTokenResolver;
5655
import org.springframework.security.oauth2.server.resource.web.access.BearerTokenAccessDeniedHandler;
56+
import org.springframework.security.oauth2.server.resource.web.authentication.BearerTokenAuthenticationFilter;
5757
import org.springframework.security.web.AuthenticationEntryPoint;
5858
import org.springframework.security.web.access.AccessDeniedHandler;
5959
import org.springframework.security.web.access.AccessDeniedHandlerImpl;

config/src/main/java/org/springframework/security/config/http/OAuth2ResourceServerBeanDefinitionParser.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,10 @@
4343
import org.springframework.security.oauth2.server.resource.authentication.OpaqueTokenAuthenticationProvider;
4444
import org.springframework.security.oauth2.server.resource.introspection.NimbusOpaqueTokenIntrospector;
4545
import org.springframework.security.oauth2.server.resource.web.BearerTokenAuthenticationEntryPoint;
46-
import org.springframework.security.oauth2.server.resource.web.BearerTokenAuthenticationFilter;
4746
import org.springframework.security.oauth2.server.resource.web.BearerTokenResolver;
4847
import org.springframework.security.oauth2.server.resource.web.DefaultBearerTokenResolver;
4948
import org.springframework.security.oauth2.server.resource.web.access.BearerTokenAccessDeniedHandler;
49+
import org.springframework.security.oauth2.server.resource.web.authentication.BearerTokenAuthenticationFilter;
5050
import org.springframework.security.web.util.matcher.RequestMatcher;
5151
import org.springframework.util.Assert;
5252
import org.springframework.util.StringUtils;

config/src/main/java/org/springframework/security/config/web/server/ServerHttpSecurity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@
9999
import org.springframework.security.oauth2.server.resource.introspection.ReactiveOpaqueTokenIntrospector;
100100
import org.springframework.security.oauth2.server.resource.web.access.server.BearerTokenServerAccessDeniedHandler;
101101
import org.springframework.security.oauth2.server.resource.web.server.BearerTokenServerAuthenticationEntryPoint;
102-
import org.springframework.security.oauth2.server.resource.web.server.ServerBearerTokenAuthenticationConverter;
102+
import org.springframework.security.oauth2.server.resource.web.server.authentication.ServerBearerTokenAuthenticationConverter;
103103
import org.springframework.security.web.PortMapper;
104104
import org.springframework.security.web.authentication.preauth.x509.SubjectDnX509PrincipalExtractor;
105105
import org.springframework.security.web.authentication.preauth.x509.X509PrincipalExtractor;

config/src/test/java/org/springframework/security/config/annotation/web/configurers/oauth2/server/resource/OAuth2ResourceServerConfigurerTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,10 +126,10 @@
126126
import org.springframework.security.oauth2.server.resource.introspection.OpaqueTokenAuthenticationConverter;
127127
import org.springframework.security.oauth2.server.resource.introspection.OpaqueTokenIntrospector;
128128
import org.springframework.security.oauth2.server.resource.web.BearerTokenAuthenticationEntryPoint;
129-
import org.springframework.security.oauth2.server.resource.web.BearerTokenAuthenticationFilter;
130129
import org.springframework.security.oauth2.server.resource.web.BearerTokenResolver;
131130
import org.springframework.security.oauth2.server.resource.web.DefaultBearerTokenResolver;
132131
import org.springframework.security.oauth2.server.resource.web.access.BearerTokenAccessDeniedHandler;
132+
import org.springframework.security.oauth2.server.resource.web.authentication.BearerTokenAuthenticationFilter;
133133
import org.springframework.security.provisioning.InMemoryUserDetailsManager;
134134
import org.springframework.security.web.AuthenticationEntryPoint;
135135
import org.springframework.security.web.SecurityFilterChain;

config/src/test/java/org/springframework/security/config/web/server/OAuth2ResourceServerSpecTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
import org.springframework.security.oauth2.jwt.Jwt;
6666
import org.springframework.security.oauth2.jwt.ReactiveJwtDecoder;
6767
import org.springframework.security.oauth2.jwt.TestJwts;
68-
import org.springframework.security.oauth2.server.resource.BearerTokenAuthenticationToken;
68+
import org.springframework.security.oauth2.server.resource.authentication.BearerTokenAuthenticationToken;
6969
import org.springframework.security.oauth2.server.resource.authentication.JwtAuthenticationConverter;
7070
import org.springframework.security.oauth2.server.resource.authentication.ReactiveJwtAuthenticationConverter;
7171
import org.springframework.security.oauth2.server.resource.authentication.ReactiveJwtAuthenticationConverterAdapter;

config/src/test/kotlin/org/springframework/security/config/web/server/ServerOAuth2ResourceServerDslTests.kt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ import org.springframework.security.authentication.ReactiveAuthenticationManager
3333
import org.springframework.security.config.annotation.web.reactive.EnableWebFluxSecurity
3434
import org.springframework.security.config.test.SpringTestContext
3535
import org.springframework.security.config.test.SpringTestContextExtension
36-
import org.springframework.security.oauth2.server.resource.web.server.ServerBearerTokenAuthenticationConverter
36+
import org.springframework.security.oauth2.server.resource.web.server.authentication.ServerBearerTokenAuthenticationConverter
3737
import org.springframework.security.web.server.SecurityWebFilterChain
3838
import org.springframework.security.web.server.authentication.HttpStatusServerEntryPoint
3939
import org.springframework.security.web.server.authorization.HttpStatusServerAccessDeniedHandler
@@ -146,7 +146,8 @@ class ServerOAuth2ResourceServerDslTests {
146146
open class BearerTokenConverterConfig {
147147

148148
companion object {
149-
val CONVERTER: ServerBearerTokenAuthenticationConverter = ServerBearerTokenAuthenticationConverter()
149+
val CONVERTER: ServerBearerTokenAuthenticationConverter =
150+
ServerBearerTokenAuthenticationConverter()
150151
}
151152

152153
@Bean
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,14 @@
1414
* limitations under the License.
1515
*/
1616

17-
package org.springframework.security.oauth2.server.resource;
17+
package org.springframework.security.oauth2.server.resource.authentication;
1818

1919
import java.util.Collections;
2020

2121
import org.springframework.security.authentication.AbstractAuthenticationToken;
2222
import org.springframework.security.core.Authentication;
2323
import org.springframework.security.core.SpringSecurityCoreVersion;
24-
import org.springframework.security.oauth2.server.resource.authentication.JwtAuthenticationProvider;
25-
import org.springframework.security.oauth2.server.resource.web.BearerTokenAuthenticationFilter;
24+
import org.springframework.security.oauth2.server.resource.web.authentication.BearerTokenAuthenticationFilter;
2625
import org.springframework.util.Assert;
2726

2827
/**

oauth2/oauth2-resource-server/src/main/java/org/springframework/security/oauth2/server/resource/authentication/JwtAuthenticationProvider.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
import org.springframework.security.oauth2.jwt.Jwt;
3333
import org.springframework.security.oauth2.jwt.JwtDecoder;
3434
import org.springframework.security.oauth2.jwt.JwtException;
35-
import org.springframework.security.oauth2.server.resource.BearerTokenAuthenticationToken;
3635
import org.springframework.security.oauth2.server.resource.InvalidBearerTokenException;
3736
import org.springframework.util.Assert;
3837

oauth2/oauth2-resource-server/src/main/java/org/springframework/security/oauth2/server/resource/authentication/JwtIssuerAuthenticationManagerResolver.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
import org.springframework.security.oauth2.core.OAuth2AuthenticationException;
4040
import org.springframework.security.oauth2.jwt.JwtDecoder;
4141
import org.springframework.security.oauth2.jwt.JwtDecoders;
42-
import org.springframework.security.oauth2.server.resource.BearerTokenAuthenticationToken;
4342
import org.springframework.security.oauth2.server.resource.InvalidBearerTokenException;
4443
import org.springframework.util.Assert;
4544

oauth2/oauth2-resource-server/src/main/java/org/springframework/security/oauth2/server/resource/authentication/JwtIssuerReactiveAuthenticationManagerResolver.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636
import org.springframework.security.core.Authentication;
3737
import org.springframework.security.oauth2.core.OAuth2AuthenticationException;
3838
import org.springframework.security.oauth2.jwt.ReactiveJwtDecoders;
39-
import org.springframework.security.oauth2.server.resource.BearerTokenAuthenticationToken;
4039
import org.springframework.security.oauth2.server.resource.InvalidBearerTokenException;
4140
import org.springframework.util.Assert;
4241
import org.springframework.web.server.ServerWebExchange;

oauth2/oauth2-resource-server/src/main/java/org/springframework/security/oauth2/server/resource/authentication/JwtReactiveAuthenticationManager.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
import org.springframework.security.oauth2.jwt.Jwt;
2929
import org.springframework.security.oauth2.jwt.JwtException;
3030
import org.springframework.security.oauth2.jwt.ReactiveJwtDecoder;
31-
import org.springframework.security.oauth2.server.resource.BearerTokenAuthenticationToken;
3231
import org.springframework.security.oauth2.server.resource.InvalidBearerTokenException;
3332
import org.springframework.util.Assert;
3433

oauth2/oauth2-resource-server/src/main/java/org/springframework/security/oauth2/server/resource/authentication/OpaqueTokenAuthenticationProvider.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
import org.springframework.security.oauth2.core.OAuth2AccessToken;
3232
import org.springframework.security.oauth2.core.OAuth2AuthenticatedPrincipal;
3333
import org.springframework.security.oauth2.core.OAuth2TokenIntrospectionClaimNames;
34-
import org.springframework.security.oauth2.server.resource.BearerTokenAuthenticationToken;
3534
import org.springframework.security.oauth2.server.resource.InvalidBearerTokenException;
3635
import org.springframework.security.oauth2.server.resource.introspection.BadOpaqueTokenException;
3736
import org.springframework.security.oauth2.server.resource.introspection.OAuth2IntrospectionException;

oauth2/oauth2-resource-server/src/main/java/org/springframework/security/oauth2/server/resource/authentication/OpaqueTokenReactiveAuthenticationManager.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
import org.springframework.security.core.AuthenticationException;
2626
import org.springframework.security.core.GrantedAuthority;
2727
import org.springframework.security.oauth2.core.OAuth2AuthenticatedPrincipal;
28-
import org.springframework.security.oauth2.server.resource.BearerTokenAuthenticationToken;
2928
import org.springframework.security.oauth2.server.resource.InvalidBearerTokenException;
3029
import org.springframework.security.oauth2.server.resource.introspection.BadOpaqueTokenException;
3130
import org.springframework.security.oauth2.server.resource.introspection.OAuth2IntrospectionException;

oauth2/oauth2-resource-server/src/main/java/org/springframework/security/oauth2/server/resource/web/BearerTokenAuthenticationEntryPoint.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
import org.springframework.security.oauth2.core.OAuth2AuthenticationException;
2929
import org.springframework.security.oauth2.core.OAuth2Error;
3030
import org.springframework.security.oauth2.server.resource.BearerTokenError;
31+
import org.springframework.security.oauth2.server.resource.web.authentication.BearerTokenAuthenticationFilter;
3132
import org.springframework.security.web.AuthenticationEntryPoint;
3233
import org.springframework.util.StringUtils;
3334

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package org.springframework.security.oauth2.server.resource.web;
17+
package org.springframework.security.oauth2.server.resource.web.authentication;
1818

1919
import java.io.IOException;
2020

@@ -34,8 +34,11 @@
3434
import org.springframework.security.core.context.SecurityContextHolder;
3535
import org.springframework.security.core.context.SecurityContextHolderStrategy;
3636
import org.springframework.security.oauth2.core.OAuth2AuthenticationException;
37-
import org.springframework.security.oauth2.server.resource.BearerTokenAuthenticationToken;
37+
import org.springframework.security.oauth2.server.resource.authentication.BearerTokenAuthenticationToken;
3838
import org.springframework.security.oauth2.server.resource.authentication.JwtAuthenticationProvider;
39+
import org.springframework.security.oauth2.server.resource.web.BearerTokenAuthenticationEntryPoint;
40+
import org.springframework.security.oauth2.server.resource.web.BearerTokenResolver;
41+
import org.springframework.security.oauth2.server.resource.web.DefaultBearerTokenResolver;
3942
import org.springframework.security.web.AuthenticationEntryPoint;
4043
import org.springframework.security.web.authentication.AuthenticationFailureHandler;
4144
import org.springframework.security.web.authentication.WebAuthenticationDetailsSource;

oauth2/oauth2-resource-server/src/main/java/org/springframework/security/oauth2/server/resource/web/server/BearerTokenServerAuthenticationEntryPoint.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
import org.springframework.security.oauth2.core.OAuth2AuthenticationException;
2929
import org.springframework.security.oauth2.core.OAuth2Error;
3030
import org.springframework.security.oauth2.server.resource.BearerTokenError;
31-
import org.springframework.security.oauth2.server.resource.web.BearerTokenAuthenticationFilter;
31+
import org.springframework.security.oauth2.server.resource.web.authentication.BearerTokenAuthenticationFilter;
3232
import org.springframework.security.web.AuthenticationEntryPoint;
3333
import org.springframework.security.web.server.ServerAuthenticationEntryPoint;
3434
import org.springframework.util.StringUtils;
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package org.springframework.security.oauth2.server.resource.web.server;
17+
package org.springframework.security.oauth2.server.resource.web.server.authentication;
1818

1919
import java.util.List;
2020
import java.util.regex.Matcher;
@@ -27,9 +27,9 @@
2727
import org.springframework.http.server.reactive.ServerHttpRequest;
2828
import org.springframework.security.core.Authentication;
2929
import org.springframework.security.oauth2.core.OAuth2AuthenticationException;
30-
import org.springframework.security.oauth2.server.resource.BearerTokenAuthenticationToken;
3130
import org.springframework.security.oauth2.server.resource.BearerTokenError;
3231
import org.springframework.security.oauth2.server.resource.BearerTokenErrors;
32+
import org.springframework.security.oauth2.server.resource.authentication.BearerTokenAuthenticationToken;
3333
import org.springframework.security.web.server.authentication.ServerAuthenticationConverter;
3434
import org.springframework.util.CollectionUtils;
3535
import org.springframework.util.StringUtils;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package org.springframework.security.oauth2.server.resource;
17+
package org.springframework.security.oauth2.server.resource.authentication;
1818

1919
import org.junit.jupiter.api.Test;
2020

oauth2/oauth2-resource-server/src/test/java/org/springframework/security/oauth2/server/resource/authentication/JwtAuthenticationProviderTests.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
import org.springframework.security.oauth2.jwt.JwtDecoder;
3333
import org.springframework.security.oauth2.jwt.JwtException;
3434
import org.springframework.security.oauth2.jwt.TestJwts;
35-
import org.springframework.security.oauth2.server.resource.BearerTokenAuthenticationToken;
3635
import org.springframework.security.oauth2.server.resource.BearerTokenErrorCodes;
3736

3837
import static org.assertj.core.api.Assertions.assertThat;

oauth2/oauth2-resource-server/src/test/java/org/springframework/security/oauth2/server/resource/authentication/JwtIssuerAuthenticationManagerResolverTests.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
import org.springframework.security.oauth2.core.OAuth2AuthenticationException;
4040
import org.springframework.security.oauth2.jose.TestKeys;
4141
import org.springframework.security.oauth2.jwt.JwtClaimNames;
42-
import org.springframework.security.oauth2.server.resource.BearerTokenAuthenticationToken;
4342
import org.springframework.security.oauth2.server.resource.authentication.JwtIssuerAuthenticationManagerResolver.TrustedIssuerJwtAuthenticationManagerResolver;
4443

4544
import static org.assertj.core.api.Assertions.assertThat;

oauth2/oauth2-resource-server/src/test/java/org/springframework/security/oauth2/server/resource/authentication/JwtIssuerReactiveAuthenticationManagerResolverTests.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@
4040
import org.springframework.security.oauth2.core.OAuth2AuthenticationException;
4141
import org.springframework.security.oauth2.jose.TestKeys;
4242
import org.springframework.security.oauth2.jwt.JwtClaimNames;
43-
import org.springframework.security.oauth2.server.resource.BearerTokenAuthenticationToken;
4443
import org.springframework.security.oauth2.server.resource.authentication.JwtIssuerReactiveAuthenticationManagerResolver.TrustedIssuerJwtAuthenticationManagerResolver;
4544

4645
import static org.assertj.core.api.Assertions.assertThat;

oauth2/oauth2-resource-server/src/test/java/org/springframework/security/oauth2/server/resource/authentication/JwtReactiveAuthenticationManagerTests.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
import org.springframework.security.oauth2.jwt.JwtException;
3434
import org.springframework.security.oauth2.jwt.ReactiveJwtDecoder;
3535
import org.springframework.security.oauth2.jwt.TestJwts;
36-
import org.springframework.security.oauth2.server.resource.BearerTokenAuthenticationToken;
3736

3837
import static org.assertj.core.api.Assertions.assertThat;
3938
import static org.assertj.core.api.Assertions.assertThatExceptionOfType;

oauth2/oauth2-resource-server/src/test/java/org/springframework/security/oauth2/server/resource/authentication/OpaqueTokenAuthenticationProviderTests.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
import org.springframework.security.oauth2.core.OAuth2AuthenticatedPrincipal;
3131
import org.springframework.security.oauth2.core.OAuth2TokenIntrospectionClaimNames;
3232
import org.springframework.security.oauth2.core.TestOAuth2AuthenticatedPrincipals;
33-
import org.springframework.security.oauth2.server.resource.BearerTokenAuthenticationToken;
3433
import org.springframework.security.oauth2.server.resource.introspection.OAuth2IntrospectionAuthenticatedPrincipal;
3534
import org.springframework.security.oauth2.server.resource.introspection.OAuth2IntrospectionException;
3635
import org.springframework.security.oauth2.server.resource.introspection.OpaqueTokenAuthenticationConverter;

oauth2/oauth2-resource-server/src/test/java/org/springframework/security/oauth2/server/resource/authentication/OpaqueTokenReactiveAuthenticationManagerTests.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
import org.springframework.security.oauth2.core.OAuth2AuthenticatedPrincipal;
3232
import org.springframework.security.oauth2.core.OAuth2TokenIntrospectionClaimNames;
3333
import org.springframework.security.oauth2.core.TestOAuth2AuthenticatedPrincipals;
34-
import org.springframework.security.oauth2.server.resource.BearerTokenAuthenticationToken;
3534
import org.springframework.security.oauth2.server.resource.introspection.OAuth2IntrospectionAuthenticatedPrincipal;
3635
import org.springframework.security.oauth2.server.resource.introspection.OAuth2IntrospectionException;
3736
import org.springframework.security.oauth2.server.resource.introspection.ReactiveOpaqueTokenAuthenticationConverter;
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package org.springframework.security.oauth2.server.resource.web;
17+
package org.springframework.security.oauth2.server.resource.web.authentication;
1818

1919
import java.io.IOException;
2020

@@ -41,9 +41,10 @@
4141
import org.springframework.security.core.context.SecurityContextHolderStrategy;
4242
import org.springframework.security.core.context.SecurityContextImpl;
4343
import org.springframework.security.oauth2.core.OAuth2AuthenticationException;
44-
import org.springframework.security.oauth2.server.resource.BearerTokenAuthenticationToken;
4544
import org.springframework.security.oauth2.server.resource.BearerTokenError;
4645
import org.springframework.security.oauth2.server.resource.BearerTokenErrorCodes;
46+
import org.springframework.security.oauth2.server.resource.authentication.BearerTokenAuthenticationToken;
47+
import org.springframework.security.oauth2.server.resource.web.BearerTokenResolver;
4748
import org.springframework.security.web.AuthenticationEntryPoint;
4849
import org.springframework.security.web.authentication.AuthenticationFailureHandler;
4950
import org.springframework.security.web.context.SecurityContextRepository;

0 commit comments

Comments
 (0)