Skip to content

Commit 81c7ce1

Browse files
vpavicphilwebb
authored andcommitted
Add starter for OAuth2 resource server
Closes gh-14950
1 parent 683484e commit 81c7ce1

File tree

5 files changed

+47
-26
lines changed
  • spring-boot-project
    • spring-boot-dependencies
    • spring-boot-starters
  • spring-boot-samples
    • spring-boot-sample-oauth2-resource-server
    • spring-boot-sample-reactive-oauth2-resource-server

5 files changed

+47
-26
lines changed

Diff for: spring-boot-project/spring-boot-dependencies/pom.xml

+5
Original file line numberDiff line numberDiff line change
@@ -489,6 +489,11 @@
489489
<artifactId>spring-boot-starter-oauth2-client</artifactId>
490490
<version>${revision}</version>
491491
</dependency>
492+
<dependency>
493+
<groupId>org.springframework.boot</groupId>
494+
<artifactId>spring-boot-starter-oauth2-resource-server</artifactId>
495+
<version>${revision}</version>
496+
</dependency>
492497
<dependency>
493498
<groupId>org.springframework.boot</groupId>
494499
<artifactId>spring-boot-starter-reactor-netty</artifactId>

Diff for: spring-boot-project/spring-boot-starters/pom.xml

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

Diff for: spring-boot-samples/spring-boot-sample-oauth2-resource-server/pom.xml

+1-13
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-resource-server</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-resource-server</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>com.squareup.okhttp3</groupId>

Diff for: spring-boot-samples/spring-boot-sample-reactive-oauth2-resource-server/pom.xml

+1-13
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-resource-server</artifactId>
2222
</dependency>
2323
<dependency>
2424
<groupId>org.springframework.boot</groupId>
2525
<artifactId>spring-boot-starter-webflux</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-jose</artifactId>
34-
</dependency>
35-
<dependency>
36-
<groupId>org.springframework.security</groupId>
37-
<artifactId>spring-security-oauth2-resource-server</artifactId>
38-
</dependency>
3927
<!-- Test -->
4028
<dependency>
4129
<groupId>com.squareup.okhttp3</groupId>

0 commit comments

Comments
 (0)