Skip to content

Commit 09e09bf

Browse files
committed
Add starter for OpenID Connect/OAuth2 client
Closes gh-13830
1 parent 1c224e5 commit 09e09bf

File tree

4 files changed

+45
-13
lines changed
  • spring-boot-project
  • spring-boot-samples/spring-boot-sample-oauth2-client

4 files changed

+45
-13
lines changed

spring-boot-project/spring-boot-dependencies/pom.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -470,6 +470,11 @@
470470
<artifactId>spring-boot-starter-mustache</artifactId>
471471
<version>${revision}</version>
472472
</dependency>
473+
<dependency>
474+
<groupId>org.springframework.boot</groupId>
475+
<artifactId>spring-boot-starter-oauth2-oidc-client</artifactId>
476+
<version>${revision}</version>
477+
</dependency>
473478
<dependency>
474479
<groupId>org.springframework.boot</groupId>
475480
<artifactId>spring-boot-starter-reactor-netty</artifactId>

spring-boot-project/spring-boot-starters/pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
5555
<module>spring-boot-starter-mail</module>
5656
<module>spring-boot-starter-mustache</module>
5757
<module>spring-boot-starter-actuator</module>
58+
<module>spring-boot-starter-oauth2-oidc-client</module>
5859
<module>spring-boot-starter-parent</module>
5960
<module>spring-boot-starter-quartz</module>
6061
<module>spring-boot-starter-reactor-netty</module>
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4+
<modelVersion>4.0.0</modelVersion>
5+
<parent>
6+
<groupId>org.springframework.boot</groupId>
7+
<artifactId>spring-boot-starters</artifactId>
8+
<version>${revision}</version>
9+
</parent>
10+
<artifactId>spring-boot-starter-oauth2-oidc-client</artifactId>
11+
<name>Spring Boot OAuth2/OpenID Connect Client Starter</name>
12+
<description>Starter for using Spring Security's OAuth2/OpenID Connect client features</description>
13+
<properties>
14+
<main.basedir>${basedir}/../../..</main.basedir>
15+
</properties>
16+
<dependencies>
17+
<dependency>
18+
<groupId>org.springframework.boot</groupId>
19+
<artifactId>spring-boot-starter</artifactId>
20+
</dependency>
21+
<dependency>
22+
<groupId>org.springframework.security</groupId>
23+
<artifactId>spring-security-config</artifactId>
24+
</dependency>
25+
<dependency>
26+
<groupId>org.springframework.security</groupId>
27+
<artifactId>spring-security-core</artifactId>
28+
</dependency>
29+
<dependency>
30+
<groupId>org.springframework.security</groupId>
31+
<artifactId>spring-security-oauth2-client</artifactId>
32+
</dependency>
33+
<dependency>
34+
<groupId>org.springframework.security</groupId>
35+
<artifactId>spring-security-oauth2-jose</artifactId>
36+
</dependency>
37+
</dependencies>
38+
</project>

spring-boot-samples/spring-boot-sample-oauth2-client/pom.xml

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -18,24 +18,12 @@
1818
<!-- Compile -->
1919
<dependency>
2020
<groupId>org.springframework.boot</groupId>
21-
<artifactId>spring-boot-starter-security</artifactId>
21+
<artifactId>spring-boot-starter-oauth2-oidc-client</artifactId>
2222
</dependency>
2323
<dependency>
2424
<groupId>org.springframework.boot</groupId>
2525
<artifactId>spring-boot-starter-web</artifactId>
2626
</dependency>
27-
<dependency>
28-
<groupId>org.springframework.security</groupId>
29-
<artifactId>spring-security-config</artifactId>
30-
</dependency>
31-
<dependency>
32-
<groupId>org.springframework.security</groupId>
33-
<artifactId>spring-security-oauth2-client</artifactId>
34-
</dependency>
35-
<dependency>
36-
<groupId>org.springframework.security</groupId>
37-
<artifactId>spring-security-oauth2-jose</artifactId>
38-
</dependency>
3927
<!-- Test -->
4028
<dependency>
4129
<groupId>org.apache.httpcomponents</groupId>

0 commit comments

Comments
 (0)