Skip to content

Commit 912a8a8

Browse files
committed
Create spring-boot-security-oauth2-client module
1 parent 6777573 commit 912a8a8

File tree

34 files changed

+93
-60
lines changed

34 files changed

+93
-60
lines changed

Diff for: settings.gradle

+1
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ include "spring-boot-project:spring-boot-r2dbc"
101101
include "spring-boot-project:spring-boot-reactor-netty"
102102
include "spring-boot-project:spring-boot-rsocket"
103103
include "spring-boot-project:spring-boot-security"
104+
include "spring-boot-project:spring-boot-security-oauth2-client"
104105
include "spring-boot-project:spring-boot-sendgrid"
105106
include "spring-boot-project:spring-boot-test"
106107
include "spring-boot-project:spring-boot-test-autoconfigure"

Diff for: spring-boot-project/spring-boot-actuator-autoconfigure/build.gradle

+1
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ dependencies {
4848
optional(project(":spring-boot-project:spring-boot-quartz"))
4949
optional(project(":spring-boot-project:spring-boot-r2dbc"))
5050
optional(project(":spring-boot-project:spring-boot-reactor-netty"))
51+
optional(project(":spring-boot-project:spring-boot-security-oauth2-client"))
5152
optional(project(":spring-boot-project:spring-boot-tomcat"))
5253
optional(project(":spring-boot-project:spring-boot-undertow"))
5354
optional(project(":spring-boot-project:spring-boot-validation"))

Diff for: spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/security/reactive/ReactiveManagementWebSecurityAutoConfiguration.java

+3-4
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
2929
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
3030
import org.springframework.boot.autoconfigure.condition.ConditionalOnWebApplication;
31-
import org.springframework.boot.autoconfigure.security.oauth2.client.reactive.ReactiveOAuth2ClientAutoConfiguration;
3231
import org.springframework.boot.autoconfigure.security.oauth2.resource.reactive.ReactiveOAuth2ResourceServerAutoConfiguration;
3332
import org.springframework.boot.security.autoconfigure.reactive.ReactiveSecurityAutoConfiguration;
3433
import org.springframework.boot.security.autoconfigure.reactive.ReactiveUserDetailsServiceAutoConfiguration;
@@ -57,9 +56,9 @@
5756
*/
5857
@AutoConfiguration(before = ReactiveSecurityAutoConfiguration.class,
5958
after = { HealthEndpointAutoConfiguration.class, InfoEndpointAutoConfiguration.class,
60-
WebEndpointAutoConfiguration.class, ReactiveOAuth2ClientAutoConfiguration.class,
61-
ReactiveOAuth2ResourceServerAutoConfiguration.class,
62-
ReactiveUserDetailsServiceAutoConfiguration.class })
59+
WebEndpointAutoConfiguration.class, ReactiveOAuth2ResourceServerAutoConfiguration.class,
60+
ReactiveUserDetailsServiceAutoConfiguration.class },
61+
afterName = "org.springframework.boot.security.oauth2.client.autoconfigure.reactive.ReactiveOAuth2ClientAutoConfiguration")
6362
@ConditionalOnClass({ EnableWebFluxSecurity.class, WebFilterChainProxy.class })
6463
@ConditionalOnMissingBean({ SecurityWebFilterChain.class, WebFilterChainProxy.class })
6564
@ConditionalOnWebApplication(type = ConditionalOnWebApplication.Type.REACTIVE)

Diff for: spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/security/servlet/ManagementWebSecurityAutoConfiguration.java

+3-4
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
import org.springframework.boot.autoconfigure.AutoConfiguration;
2525
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
2626
import org.springframework.boot.autoconfigure.condition.ConditionalOnWebApplication;
27-
import org.springframework.boot.autoconfigure.security.oauth2.client.servlet.OAuth2ClientAutoConfiguration;
2827
import org.springframework.boot.autoconfigure.security.oauth2.resource.servlet.OAuth2ResourceServerAutoConfiguration;
2928
import org.springframework.boot.security.autoconfigure.ConditionalOnDefaultWebSecurity;
3029
import org.springframework.boot.security.autoconfigure.SecurityProperties;
@@ -52,9 +51,9 @@
5251
*/
5352
@AutoConfiguration(before = SecurityAutoConfiguration.class,
5453
after = { HealthEndpointAutoConfiguration.class, InfoEndpointAutoConfiguration.class,
55-
WebEndpointAutoConfiguration.class, OAuth2ClientAutoConfiguration.class,
56-
OAuth2ResourceServerAutoConfiguration.class },
57-
afterName = "org.springframework.boot.security.autoconfigure.saml2.Saml2RelyingPartyAutoConfiguration")
54+
WebEndpointAutoConfiguration.class, OAuth2ResourceServerAutoConfiguration.class },
55+
afterName = { "org.springframework.boot.security.autoconfigure.saml2.Saml2RelyingPartyAutoConfiguration",
56+
"org.springframework.boot.security.oauth2.client.autoconfigure.servlet.OAuth2ClientAutoConfiguration" })
5857
@ConditionalOnWebApplication(type = ConditionalOnWebApplication.Type.SERVLET)
5958
@ConditionalOnDefaultWebSecurity
6059
public class ManagementWebSecurityAutoConfiguration {

Diff for: spring-boot-project/spring-boot-autoconfigure-all/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports

-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ org.springframework.boot.autoconfigure.http.client.HttpClientAutoConfiguration
1515
org.springframework.boot.autoconfigure.http.codec.CodecsAutoConfiguration
1616
org.springframework.boot.autoconfigure.netty.NettyAutoConfiguration
1717
org.springframework.boot.autoconfigure.reactor.ReactorAutoConfiguration
18-
org.springframework.boot.autoconfigure.security.oauth2.client.servlet.OAuth2ClientAutoConfiguration
19-
org.springframework.boot.autoconfigure.security.oauth2.client.reactive.ReactiveOAuth2ClientAutoConfiguration
2018
org.springframework.boot.autoconfigure.security.oauth2.resource.servlet.OAuth2ResourceServerAutoConfiguration
2119
org.springframework.boot.autoconfigure.security.oauth2.resource.reactive.ReactiveOAuth2ResourceServerAutoConfiguration
2220
org.springframework.boot.autoconfigure.security.oauth2.server.servlet.OAuth2AuthorizationServerAutoConfiguration

Diff for: spring-boot-project/spring-boot-dependencies/build.gradle

+1
Original file line numberDiff line numberDiff line change
@@ -2048,6 +2048,7 @@ bom {
20482048
"spring-boot-reactor-netty",
20492049
"spring-boot-rsocket",
20502050
"spring-boot-security",
2051+
"spring-boot-security-oauth2-client",
20512052
"spring-boot-sendgrid",
20522053
"spring-boot-starter",
20532054
"spring-boot-starter-activemq",

Diff for: spring-boot-project/spring-boot-docs/build.gradle

+2
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ dependencies {
106106
autoConfiguration(project(path: ":spring-boot-project:spring-boot-reactor-netty", configuration: "autoConfigurationMetadata"))
107107
autoConfiguration(project(path: ":spring-boot-project:spring-boot-rsocket", configuration: "autoConfigurationMetadata"))
108108
autoConfiguration(project(path: ":spring-boot-project:spring-boot-security", configuration: "autoConfigurationMetadata"))
109+
autoConfiguration(project(path: ":spring-boot-project:spring-boot-security-oauth2-client", configuration: "autoConfigurationMetadata"))
109110
autoConfiguration(project(path: ":spring-boot-project:spring-boot-sendgrid", configuration: "autoConfigurationMetadata"))
110111
autoConfiguration(project(path: ":spring-boot-project:spring-boot-testcontainers", configuration: "autoConfigurationMetadata"))
111112
autoConfiguration(project(path: ":spring-boot-project:spring-boot-thymeleaf", configuration: "autoConfigurationMetadata"))
@@ -170,6 +171,7 @@ dependencies {
170171
configurationProperties(project(path: ":spring-boot-project:spring-boot-reactor-netty", configuration: "configurationPropertiesMetadata"))
171172
configurationProperties(project(path: ":spring-boot-project:spring-boot-rsocket", configuration: "configurationPropertiesMetadata"))
172173
configurationProperties(project(path: ":spring-boot-project:spring-boot-security", configuration: "configurationPropertiesMetadata"))
174+
configurationProperties(project(path: ":spring-boot-project:spring-boot-security-oauth2-client", configuration: "configurationPropertiesMetadata"))
173175
configurationProperties(project(path: ":spring-boot-project:spring-boot-sendgrid", configuration: "configurationPropertiesMetadata"))
174176
configurationProperties(project(path: ":spring-boot-project:spring-boot-test-autoconfigure", configuration: "configurationPropertiesMetadata"))
175177
configurationProperties(project(path: ":spring-boot-project:spring-boot-testcontainers", configuration: "configurationPropertiesMetadata"))

Diff for: spring-boot-project/spring-boot-docs/src/docs/antora/modules/reference/pages/web/spring-security.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ https://oauth.net/2/[OAuth2] is a widely used authorization framework that is su
9595
=== Client
9696

9797
If you have `spring-security-oauth2-client` on your classpath, you can take advantage of some auto-configuration to set up OAuth2/Open ID Connect clients.
98-
This configuration makes use of the properties under javadoc:org.springframework.boot.autoconfigure.security.oauth2.client.OAuth2ClientProperties[].
98+
This configuration makes use of the properties under javadoc:org.springframework.boot.security.oauth2.client.autoconfigure.OAuth2ClientProperties[].
9999
The same properties are applicable to both servlet and reactive applications.
100100

101101
You can register multiple OAuth2 clients and providers under the `spring.security.oauth2.client` prefix, as shown in the following example:
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
plugins {
2+
id "java-library"
3+
id "org.springframework.boot.auto-configuration"
4+
id "org.springframework.boot.configuration-properties"
5+
id "org.springframework.boot.deployed"
6+
id "org.springframework.boot.optional-dependencies"
7+
}
8+
9+
description = "Spring Boot Security OAuth2 Client"
10+
11+
dependencies {
12+
api(project(":spring-boot-project:spring-boot"))
13+
api("org.springframework.security:spring-security-oauth2-client")
14+
15+
implementation(project(":spring-boot-project:spring-boot-security"))
16+
17+
optional(project(":spring-boot-project:spring-boot-autoconfigure"))
18+
optional("io.projectreactor:reactor-core")
19+
20+
testImplementation(project(":spring-boot-project:spring-boot-test"))
21+
testImplementation(project(":spring-boot-project:spring-boot-tomcat"))
22+
testImplementation(project(":spring-boot-project:spring-boot-tools:spring-boot-test-support"))
23+
testImplementation(project(":spring-boot-project:spring-boot-webmvc"))
24+
testImplementation("com.fasterxml.jackson.core:jackson-databind")
25+
testImplementation("com.squareup.okhttp3:mockwebserver")
26+
27+
testRuntimeOnly("ch.qos.logback:logback-classic")
28+
testRuntimeOnly("org.springframework:spring-webflux")
29+
}
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package org.springframework.boot.autoconfigure.security.oauth2.client;
17+
package org.springframework.boot.security.oauth2.client.autoconfigure;
1818

1919
import java.util.Collections;
2020
import java.util.Map;
@@ -34,12 +34,8 @@
3434
* properties are defined.
3535
*
3636
* @author Madhura Bhave
37-
* @since 2.1.0
38-
* @deprecated since 3.5.0 for removal in 3.7.0 in favor of
39-
* {@link ConditionalOnOAuth2ClientRegistrationProperties @ConditionalOnOAuth2ClientRegistrationConfigured}
4037
*/
41-
@Deprecated(since = "3.5.0", forRemoval = true)
42-
public class ClientsConfiguredCondition extends SpringBootCondition {
38+
class ClientsConfiguredCondition extends SpringBootCondition {
4339

4440
private static final Bindable<Map<String, OAuth2ClientProperties.Registration>> STRING_REGISTRATION_MAP = Bindable
4541
.mapOf(String.class, OAuth2ClientProperties.Registration.class);
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package org.springframework.boot.autoconfigure.security.oauth2.client;
17+
package org.springframework.boot.security.oauth2.client.autoconfigure;
1818

1919
import java.lang.annotation.Documented;
2020
import java.lang.annotation.ElementType;
@@ -29,7 +29,7 @@
2929
* properties are defined.
3030
*
3131
* @author Andy Wilkinson
32-
* @since 3.5.0
32+
* @since 4.0.0
3333
*/
3434
@SuppressWarnings("removal")
3535
@Retention(RetentionPolicy.RUNTIME)
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package org.springframework.boot.autoconfigure.security.oauth2.client;
17+
package org.springframework.boot.security.oauth2.client.autoconfigure;
1818

1919
import java.util.HashMap;
2020
import java.util.Map;
@@ -32,7 +32,7 @@
3232
* @author Artsiom Yudovin
3333
* @author MyeongHyeon Lee
3434
* @author Moritz Halbritter
35-
* @since 2.0.0
35+
* @since 4.0.0
3636
*/
3737
@ConfigurationProperties("spring.security.oauth2.client")
3838
public class OAuth2ClientProperties implements InitializingBean {
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2023 the original author or authors.
2+
* Copyright 2012-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -14,14 +14,14 @@
1414
* limitations under the License.
1515
*/
1616

17-
package org.springframework.boot.autoconfigure.security.oauth2.client;
17+
package org.springframework.boot.security.oauth2.client.autoconfigure;
1818

1919
import java.util.HashMap;
2020
import java.util.Map;
2121

22-
import org.springframework.boot.autoconfigure.security.oauth2.client.OAuth2ClientProperties.Provider;
2322
import org.springframework.boot.context.properties.PropertyMapper;
2423
import org.springframework.boot.convert.ApplicationConversionService;
24+
import org.springframework.boot.security.oauth2.client.autoconfigure.OAuth2ClientProperties.Provider;
2525
import org.springframework.core.convert.ConversionException;
2626
import org.springframework.security.config.oauth2.client.CommonOAuth2Provider;
2727
import org.springframework.security.oauth2.client.registration.ClientRegistration;
@@ -40,7 +40,7 @@
4040
* @author Madhura Bhave
4141
* @author MyeongHyeon Lee
4242
* @author Andy Wilkinson
43-
* @since 3.1.0
43+
* @since 4.0.0
4444
*/
4545
public final class OAuth2ClientPropertiesMapper {
4646

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2019 the original author or authors.
2+
* Copyright 2012-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -17,4 +17,4 @@
1717
/**
1818
* Support for Spring Security's OAuth 2 client.
1919
*/
20-
package org.springframework.boot.autoconfigure.security.oauth2.client;
20+
package org.springframework.boot.security.oauth2.client.autoconfigure;
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package org.springframework.boot.autoconfigure.security.oauth2.client.reactive;
17+
package org.springframework.boot.security.oauth2.client.autoconfigure.reactive;
1818

1919
import reactor.core.publisher.Flux;
2020

@@ -23,9 +23,9 @@
2323
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
2424
import org.springframework.boot.autoconfigure.condition.ConditionalOnWebApplication;
2525
import org.springframework.boot.autoconfigure.condition.NoneNestedConditions;
26-
import org.springframework.boot.autoconfigure.security.oauth2.client.OAuth2ClientProperties;
2726
import org.springframework.boot.context.properties.EnableConfigurationProperties;
2827
import org.springframework.boot.security.autoconfigure.reactive.ReactiveSecurityAutoConfiguration;
28+
import org.springframework.boot.security.oauth2.client.autoconfigure.OAuth2ClientProperties;
2929
import org.springframework.context.annotation.Conditional;
3030
import org.springframework.context.annotation.Import;
3131
import org.springframework.security.config.annotation.web.reactive.EnableWebFluxSecurity;
@@ -36,7 +36,7 @@
3636
* OAuth2 client.
3737
*
3838
* @author Madhura Bhave
39-
* @since 2.1.0
39+
* @since 4.0.0
4040
*/
4141
@AutoConfiguration(before = ReactiveSecurityAutoConfiguration.class)
4242
@EnableConfigurationProperties(OAuth2ClientProperties.class)
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,17 @@
1414
* limitations under the License.
1515
*/
1616

17-
package org.springframework.boot.autoconfigure.security.oauth2.client.reactive;
17+
package org.springframework.boot.security.oauth2.client.autoconfigure.reactive;
1818

1919
import java.util.ArrayList;
2020
import java.util.List;
2121

2222
import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
2323
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
2424
import org.springframework.boot.autoconfigure.condition.ConditionalOnWebApplication;
25-
import org.springframework.boot.autoconfigure.security.oauth2.client.ConditionalOnOAuth2ClientRegistrationProperties;
26-
import org.springframework.boot.autoconfigure.security.oauth2.client.OAuth2ClientProperties;
27-
import org.springframework.boot.autoconfigure.security.oauth2.client.OAuth2ClientPropertiesMapper;
25+
import org.springframework.boot.security.oauth2.client.autoconfigure.ConditionalOnOAuth2ClientRegistrationProperties;
26+
import org.springframework.boot.security.oauth2.client.autoconfigure.OAuth2ClientProperties;
27+
import org.springframework.boot.security.oauth2.client.autoconfigure.OAuth2ClientPropertiesMapper;
2828
import org.springframework.context.annotation.Bean;
2929
import org.springframework.context.annotation.Configuration;
3030
import org.springframework.security.config.web.server.ServerHttpSecurity;
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2019 the original author or authors.
2+
* Copyright 2012-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -17,4 +17,4 @@
1717
/**
1818
* Auto-configuration for Spring Security's Reactive OAuth 2 client.
1919
*/
20-
package org.springframework.boot.autoconfigure.security.oauth2.client.reactive;
20+
package org.springframework.boot.security.oauth2.client.autoconfigure.reactive;
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package org.springframework.boot.autoconfigure.security.oauth2.client.servlet;
17+
package org.springframework.boot.security.oauth2.client.autoconfigure.servlet;
1818

1919
import org.springframework.boot.autoconfigure.AutoConfiguration;
2020
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
@@ -29,7 +29,7 @@
2929
*
3030
* @author Madhura Bhave
3131
* @author Phillip Webb
32-
* @since 2.0.0
32+
* @since 4.0.0
3333
*/
3434
@AutoConfiguration(beforeName = "org.springframework.boot.security.autoconfigure.servlet.SecurityAutoConfiguration")
3535
@ConditionalOnClass({ EnableWebSecurity.class, ClientRegistration.class })
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,16 @@
1414
* limitations under the License.
1515
*/
1616

17-
package org.springframework.boot.autoconfigure.security.oauth2.client.servlet;
17+
package org.springframework.boot.security.oauth2.client.autoconfigure.servlet;
1818

1919
import java.util.ArrayList;
2020
import java.util.List;
2121

2222
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
23-
import org.springframework.boot.autoconfigure.security.oauth2.client.ConditionalOnOAuth2ClientRegistrationProperties;
24-
import org.springframework.boot.autoconfigure.security.oauth2.client.OAuth2ClientProperties;
25-
import org.springframework.boot.autoconfigure.security.oauth2.client.OAuth2ClientPropertiesMapper;
2623
import org.springframework.boot.context.properties.EnableConfigurationProperties;
24+
import org.springframework.boot.security.oauth2.client.autoconfigure.ConditionalOnOAuth2ClientRegistrationProperties;
25+
import org.springframework.boot.security.oauth2.client.autoconfigure.OAuth2ClientProperties;
26+
import org.springframework.boot.security.oauth2.client.autoconfigure.OAuth2ClientPropertiesMapper;
2727
import org.springframework.context.annotation.Bean;
2828
import org.springframework.context.annotation.Configuration;
2929
import org.springframework.security.oauth2.client.registration.ClientRegistration;
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package org.springframework.boot.autoconfigure.security.oauth2.client.servlet;
17+
package org.springframework.boot.security.oauth2.client.autoconfigure.servlet;
1818

1919
import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
2020
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2019 the original author or authors.
2+
* Copyright 2012-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -17,4 +17,4 @@
1717
/**
1818
* Auto-configuration for Spring Security's OAuth 2 client.
1919
*/
20-
package org.springframework.boot.autoconfigure.security.oauth2.client.servlet;
20+
package org.springframework.boot.security.oauth2.client.autoconfigure.servlet;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"groups": [],
3+
"properties": []
4+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
org.springframework.boot.security.oauth2.client.autoconfigure.servlet.OAuth2ClientAutoConfiguration
2+
org.springframework.boot.security.oauth2.client.autoconfigure.reactive.ReactiveOAuth2ClientAutoConfiguration
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2023 the original author or authors.
2+
* Copyright 2012-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package org.springframework.boot.autoconfigure.security.oauth2.client;
17+
package org.springframework.boot.security.oauth2.client.autoconfigure;
1818

1919
import java.util.Collections;
2020
import java.util.HashMap;
@@ -27,8 +27,8 @@
2727
import org.junit.jupiter.api.AfterEach;
2828
import org.junit.jupiter.api.Test;
2929

30-
import org.springframework.boot.autoconfigure.security.oauth2.client.OAuth2ClientProperties.Provider;
31-
import org.springframework.boot.autoconfigure.security.oauth2.client.OAuth2ClientProperties.Registration;
30+
import org.springframework.boot.security.oauth2.client.autoconfigure.OAuth2ClientProperties.Provider;
31+
import org.springframework.boot.security.oauth2.client.autoconfigure.OAuth2ClientProperties.Registration;
3232
import org.springframework.http.HttpHeaders;
3333
import org.springframework.http.HttpStatus;
3434
import org.springframework.http.MediaType;

0 commit comments

Comments
 (0)