|
1 | 1 | /*
|
2 |
| - * Copyright 2012-2022 the original author or authors. |
| 2 | + * Copyright 2012-2023 the original author or authors. |
3 | 3 | *
|
4 | 4 | * Licensed under the Apache License, Version 2.0 (the "License");
|
5 | 5 | * you may not use this file except in compliance with the License.
|
|
24 | 24 | import org.springframework.security.oauth2.server.resource.introspection.ReactiveOpaqueTokenIntrospector;
|
25 | 25 |
|
26 | 26 | /**
|
27 |
| - * Configuration classes for OAuth2 Resource Server These should be {@code @Import} in a |
28 |
| - * regular auto-configuration class to guarantee their order of execution. |
| 27 | + * Configuration classes for OAuth2 Resource Server. These should be {@code @Import}ed in |
| 28 | + * a regular auto-configuration class to guarantee their order of execution. |
29 | 29 | *
|
30 | 30 | * @author Madhura Bhave
|
31 | 31 | */
|
32 | 32 | class ReactiveOAuth2ResourceServerConfiguration {
|
33 | 33 |
|
34 | 34 | @Configuration(proxyBeanMethods = false)
|
35 | 35 | @ConditionalOnClass({ BearerTokenAuthenticationToken.class, ReactiveJwtDecoder.class })
|
36 |
| - @Import({ ReactiveOAuth2ResourceServerJwkConfiguration.JwtConfiguration.class, |
37 |
| - ReactiveOAuth2ResourceServerJwkConfiguration.WebSecurityConfiguration.class }) |
| 36 | + @Import(ReactiveOAuth2ResourceServerJwkConfiguration.JwtConfiguration.class) |
38 | 37 | static class JwtConfiguration {
|
39 | 38 |
|
40 | 39 | }
|
41 | 40 |
|
| 41 | + @Configuration(proxyBeanMethods = false) |
| 42 | + @ConditionalOnClass({ BearerTokenAuthenticationToken.class, ReactiveJwtDecoder.class }) |
| 43 | + @Import(ReactiveOAuth2ResourceServerJwkConfiguration.WebSecurityConfiguration.class) |
| 44 | + static class JwtWebSecurityConfiguration { |
| 45 | + |
| 46 | + } |
| 47 | + |
42 | 48 | @Configuration(proxyBeanMethods = false)
|
43 | 49 | @ConditionalOnClass({ BearerTokenAuthenticationToken.class, ReactiveOpaqueTokenIntrospector.class })
|
44 |
| - @Import({ ReactiveOAuth2ResourceServerOpaqueTokenConfiguration.OpaqueTokenIntrospectionClientConfiguration.class, |
45 |
| - ReactiveOAuth2ResourceServerOpaqueTokenConfiguration.WebSecurityConfiguration.class }) |
| 50 | + @Import(ReactiveOAuth2ResourceServerOpaqueTokenConfiguration.OpaqueTokenIntrospectionClientConfiguration.class) |
46 | 51 | static class OpaqueTokenConfiguration {
|
47 | 52 |
|
48 | 53 | }
|
49 | 54 |
|
| 55 | + @Configuration(proxyBeanMethods = false) |
| 56 | + @ConditionalOnClass({ BearerTokenAuthenticationToken.class, ReactiveOpaqueTokenIntrospector.class }) |
| 57 | + @Import(ReactiveOAuth2ResourceServerOpaqueTokenConfiguration.WebSecurityConfiguration.class) |
| 58 | + static class OpaqueTokenWebSecurityConfiguration { |
| 59 | + |
| 60 | + } |
| 61 | + |
50 | 62 | }
|
0 commit comments