File tree Expand file tree Collapse file tree 14 files changed +53
-50
lines changed
spring-security-oauth-ui-implicit/src/main/java/org/baeldung/config
spring-security-oauth-ui-password
main/java/org/baeldung/config
test/java/org/baeldung/live
spring-security-oauth-resource
spring-security-oauth-server
test/java/org/baeldung/test Expand file tree Collapse file tree 14 files changed +53
-50
lines changed Original file line number Diff line number Diff line change 2
2
3
3
import org .springframework .boot .SpringApplication ;
4
4
import org .springframework .boot .autoconfigure .SpringBootApplication ;
5
- import org .springframework .boot .web .support .SpringBootServletInitializer ;
5
+ import org .springframework .boot .web .servlet . support .SpringBootServletInitializer ;
6
6
7
7
@ SpringBootApplication
8
8
public class UiApplication extends SpringBootServletInitializer {
Original file line number Diff line number Diff line change 27
27
<dependency >
28
28
<groupId >org.springframework.cloud</groupId >
29
29
<artifactId >spring-cloud-starter-zuul</artifactId >
30
- <version >1.2.5.RELEASE </version >
30
+ <version >${zuul.version} </version >
31
31
</dependency >
32
32
33
33
61
61
</dependency >
62
62
63
63
<dependency >
64
- <groupId >com.jayway.restassured </groupId >
64
+ <groupId >io.rest-assured </groupId >
65
65
<artifactId >rest-assured</artifactId >
66
- <version >${rest-assured.version} </version >
67
66
<scope >test</scope >
68
- <exclusions >
69
- <exclusion >
70
- <artifactId >commons-logging</artifactId >
71
- <groupId >commons-logging</groupId >
72
- </exclusion >
73
- </exclusions >
74
67
</dependency >
75
-
68
+
76
69
<dependency >
77
70
<groupId >commons-io</groupId >
78
71
<artifactId >commons-io</artifactId >
Original file line number Diff line number Diff line change 2
2
3
3
import org .springframework .boot .SpringApplication ;
4
4
import org .springframework .boot .autoconfigure .SpringBootApplication ;
5
- import org .springframework .boot .web .support .SpringBootServletInitializer ;
5
+ import org .springframework .boot .web .servlet . support .SpringBootServletInitializer ;
6
6
import org .springframework .cloud .netflix .zuul .EnableZuulProxy ;
7
7
8
8
@ EnableZuulProxy
Original file line number Diff line number Diff line change 2
2
3
3
import static org .junit .Assert .assertEquals ;
4
4
import static org .junit .Assert .assertNotNull ;
5
+ import io .restassured .RestAssured ;
6
+ import io .restassured .response .Response ;
5
7
6
8
import java .util .HashMap ;
7
9
import java .util .Map ;
8
10
9
11
import org .junit .Test ;
10
12
import org .springframework .http .MediaType ;
11
13
12
- import com .jayway .restassured .RestAssured ;
13
- import com .jayway .restassured .response .Response ;
14
+
14
15
15
16
public class AuthorizationLiveTest {
16
17
Original file line number Diff line number Diff line change 11
11
<parent >
12
12
<groupId >org.springframework.boot</groupId >
13
13
<artifactId >spring-boot-starter-parent</artifactId >
14
- <version >1.5.8 .RELEASE</version >
14
+ <version >2.0.2 .RELEASE</version >
15
15
<relativePath ></relativePath >
16
16
</parent >
17
17
60
60
</build >
61
61
62
62
<properties >
63
+ <oauth .version>2.3.3.RELEASE</oauth .version>
64
+ <jwt .version>1.0.9.RELEASE</jwt .version>
65
+ <zuul .version>1.4.4.RELEASE</zuul .version>
66
+
63
67
<!-- util -->
64
- <commons-lang3 .version>3.4</commons-lang3 .version>
65
- <commons-io .version>2.4</commons-io .version>
68
+ <commons-io .version>2.6</commons-io .version>
66
69
67
70
<!-- testing -->
68
- <rest-assured .version>2.9 .0</rest-assured .version>
71
+ <rest-assured .version>3.1 .0</rest-assured .version>
69
72
70
73
<!-- Maven plugins -->
71
74
<maven-compiler-plugin .version>3.7.0</maven-compiler-plugin .version>
Original file line number Diff line number Diff line change 43
43
<dependency >
44
44
<groupId >org.springframework.security.oauth</groupId >
45
45
<artifactId >spring-security-oauth2</artifactId >
46
+ <version >${oauth.version} </version >
46
47
</dependency >
47
48
48
49
<dependency >
49
50
<groupId >org.springframework.security</groupId >
50
51
<artifactId >spring-security-jwt</artifactId >
52
+ <version >${jwt.version} </version >
51
53
</dependency >
52
54
53
55
<dependency >
54
56
<groupId >org.apache.commons</groupId >
55
57
<artifactId >commons-lang3</artifactId >
56
- <version >${commons-lang3.version} </version >
57
58
</dependency >
58
59
59
60
<dependency >
Original file line number Diff line number Diff line change 2
2
3
3
import org .springframework .boot .SpringApplication ;
4
4
import org .springframework .boot .autoconfigure .SpringBootApplication ;
5
- import org .springframework .boot .web .support .SpringBootServletInitializer ;
5
+ import org .springframework .boot .web .servlet . support .SpringBootServletInitializer ;
6
6
7
7
@ SpringBootApplication
8
8
public class ResourceServerApplication extends SpringBootServletInitializer {
Original file line number Diff line number Diff line change 1
- server.contextPath =/spring-security-oauth-resource
1
+ server.servlet.context-path =/spring-security-oauth-resource
2
2
server.port =8082
3
3
logging.level.org =INFO
4
4
# endpoints.cors.allowed-origins=*
Original file line number Diff line number Diff line change 45
45
<dependency >
46
46
<groupId >org.springframework.security.oauth</groupId >
47
47
<artifactId >spring-security-oauth2</artifactId >
48
+ <version >${oauth.version} </version >
48
49
</dependency >
49
50
50
51
<dependency >
51
52
<groupId >org.springframework.security</groupId >
52
53
<artifactId >spring-security-jwt</artifactId >
54
+ <version >${jwt.version} </version >
53
55
</dependency >
54
56
55
57
<dependency >
56
58
<groupId >org.apache.commons</groupId >
57
59
<artifactId >commons-lang3</artifactId >
58
- <version >${commons-lang3.version} </version >
59
60
</dependency >
60
61
61
62
<!-- test -->
73
74
<artifactId >spring-security-test</artifactId >
74
75
<scope >test</scope >
75
76
</dependency >
76
- <dependency >
77
- <groupId >com.jayway.restassured</groupId >
78
- <artifactId >rest-assured</artifactId >
79
- <version >${rest-assured.version} </version >
80
- <scope >test</scope >
81
- <exclusions >
82
- <exclusion >
83
- <artifactId >commons-logging</artifactId >
84
- <groupId >commons-logging</groupId >
85
- </exclusion >
86
- </exclusions >
87
- </dependency >
77
+
78
+ <dependency >
79
+ <groupId >io.rest-assured</groupId >
80
+ <artifactId >rest-assured</artifactId >
81
+ <scope >test</scope >
82
+ </dependency >
88
83
89
84
<dependency >
90
85
<groupId >com.fasterxml.jackson.datatype</groupId >
Original file line number Diff line number Diff line change 2
2
3
3
import org .springframework .boot .SpringApplication ;
4
4
import org .springframework .boot .autoconfigure .SpringBootApplication ;
5
- import org .springframework .boot .web .support .SpringBootServletInitializer ;
5
+ import org .springframework .boot .web .servlet . support .SpringBootServletInitializer ;
6
6
7
7
@ SpringBootApplication
8
8
public class AuthorizationServerApplication extends SpringBootServletInitializer {
You can’t perform that action at this time.
0 commit comments