File tree Expand file tree Collapse file tree 5 files changed +11
-22
lines changed
java/com/example/apigateway Expand file tree Collapse file tree 5 files changed +11
-22
lines changed Original file line number Diff line number Diff line change 55 <parent >
66 <groupId >org.springframework.boot</groupId >
77 <artifactId >spring-boot-starter-parent</artifactId >
8- <version >2.1 .5.RELEASE</version >
8+ <version >2.2 .5.RELEASE</version >
99 <relativePath /> <!-- lookup parent from repository -->
1010 </parent >
1111 <groupId >com.example</groupId >
1616
1717 <properties >
1818 <java .version>1.8</java .version>
19- <spring-cloud .version>Greenwich.SR1 </spring-cloud .version>
19+ <spring-cloud .version>Hoxton.SR3 </spring-cloud .version>
2020 </properties >
2121
2222 <dependencies >
4747 <dependency >
4848 <groupId >com.okta.spring</groupId >
4949 <artifactId >okta-spring-boot-starter</artifactId >
50- <version >1.2 .0</version >
50+ <version >1.4 .0</version >
5151 </dependency >
5252 <dependency >
5353 <groupId >org.projectlombok</groupId >
Original file line number Diff line number Diff line change 1414import org .springframework .context .annotation .Bean ;
1515import org .springframework .context .annotation .Configuration ;
1616import org .springframework .core .Ordered ;
17- import org .springframework .hateoas .Resources ;
17+ import org .springframework .hateoas .CollectionModel ;
1818import org .springframework .security .config .annotation .web .builders .HttpSecurity ;
1919import org .springframework .security .config .annotation .web .configuration .WebSecurityConfigurerAdapter ;
2020import org .springframework .security .oauth2 .client .OAuth2AuthorizedClientService ;
@@ -92,7 +92,7 @@ interface CarClient {
9292
9393 @ GetMapping ("/cars" )
9494 @ CrossOrigin
95- Resources <Car > readCars ();
95+ CollectionModel <Car > readCars ();
9696}
9797
9898@ RestController
Original file line number Diff line number Diff line change 11spring.application.name =api-gateway
2- okta.oauth2.issuer =https://dev-737523.oktapreview .com/oauth2/default
3- okta.oauth2.client-id =0oafx05pu2pxhjgkC0h7
4- okta.oauth2.client-secret =ozxBeuk7nE-oLhkUvINe1cxR3LITquTp7Jt2NvX7
2+ okta.oauth2.issuer =https://dev-133320.okta .com/oauth2/default
3+ okta.oauth2.client-id =0oa35aqn81ftCrz53357
4+ okta.oauth2.client-secret =lchv-e8ZLN3si7v84tVq-W4OT1l7kzkE5irBvDhs
55feign.hystrix.enabled =true
66hystrix.shareSecurityContext =true
77
Original file line number Diff line number Diff line change @@ -32,13 +32,6 @@ The brackets at the end of each step indicate the alias's or IntelliJ Live Templ
3232 sdk install java 11.0.2-open
3333 sdk default java 11.0.2-open
3434
35- . Add JAXB to `discovery-service` so it works with Java 11
36-
37- <dependency>
38- <groupId>org.glassfish.jaxb</groupId>
39- <artifactId>jaxb-runtime</artifactId>
40- </dependency>
41-
4235. Add `@EnableEurekaServer` and properties to set port and turn off discovery
4336
4437 server.port=8761
@@ -79,7 +72,7 @@ The brackets at the end of each step indicate the alias's or IntelliJ Live Templ
7972 <dependency>
8073 <groupId>com.okta.spring</groupId>
8174 <artifactId>okta-spring-boot-starter</artifactId>
82- <version>1.2.1 </version>
75+ <version>1.4.0 </version>
8376 </dependency>
8477
8578. Create a web app on Okta, use `http://localhost:8080/login/oauth2/code/okta` for redirect URI
Original file line number Diff line number Diff line change 55 <parent >
66 <groupId >org.springframework.boot</groupId >
77 <artifactId >spring-boot-starter-parent</artifactId >
8- <version >2.1 .5.RELEASE</version >
8+ <version >2.2 .5.RELEASE</version >
99 <relativePath /> <!-- lookup parent from repository -->
1010 </parent >
1111 <groupId >com.example</groupId >
1616
1717 <properties >
1818 <java .version>11</java .version>
19- <spring-cloud .version>Greenwich.SR1 </spring-cloud .version>
19+ <spring-cloud .version>Hoxton.SR3 </spring-cloud .version>
2020 </properties >
2121
2222 <dependencies >
2323 <dependency >
2424 <groupId >org.springframework.cloud</groupId >
2525 <artifactId >spring-cloud-starter-netflix-eureka-server</artifactId >
2626 </dependency >
27- <dependency >
28- <groupId >org.glassfish.jaxb</groupId >
29- <artifactId >jaxb-runtime</artifactId >
30- </dependency >
3127 <dependency >
3228 <groupId >org.springframework.boot</groupId >
3329 <artifactId >spring-boot-starter-test</artifactId >
You can’t perform that action at this time.
0 commit comments