Skip to content

Commit 0c12b2b

Browse files
author
Dave Syer
committed
Upgrade auth-server sample to Spring Boot 1.5
Fixes spring-guidesgh-45 (the default filter order for the resource server changed in 1.5).
1 parent ae76b52 commit 0c12b2b

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

auth-server/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<parent>
1515
<groupId>org.springframework.boot</groupId>
1616
<artifactId>spring-boot-starter-parent</artifactId>
17-
<version>1.4.0.RELEASE</version>
17+
<version>1.5.1.RELEASE</version>
1818
<relativePath /> <!-- lookup parent from repository -->
1919
</parent>
2020

auth-server/src/main/java/com/example/SocialApplication.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
import org.springframework.beans.factory.annotation.Autowired;
2727
import org.springframework.boot.SpringApplication;
2828
import org.springframework.boot.autoconfigure.SpringBootApplication;
29+
import org.springframework.boot.autoconfigure.security.SecurityProperties;
2930
import org.springframework.boot.autoconfigure.security.oauth2.resource.ResourceServerProperties;
3031
import org.springframework.boot.autoconfigure.security.oauth2.resource.UserInfoTokenServices;
3132
import org.springframework.boot.context.properties.ConfigurationProperties;
@@ -56,7 +57,7 @@
5657
@RestController
5758
@EnableOAuth2Client
5859
@EnableAuthorizationServer
59-
@Order(6)
60+
@Order(SecurityProperties.ACCESS_OVERRIDE_ORDER)
6061
public class SocialApplication extends WebSecurityConfigurerAdapter {
6162

6263
@Autowired

0 commit comments

Comments
 (0)