Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
caf72214
Commit
caf72214
authored
Aug 24, 2018
by
Madhura Bhave
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update OAuth2 config following changes in Spring Security DSL
Closes gh-14169
parent
dea67e9a
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
6 deletions
+6
-6
ReactiveOAuth2ResourceServerWebSecurityConfiguration.java
...ReactiveOAuth2ResourceServerWebSecurityConfiguration.java
+2
-2
OAuth2ResourceServerWebSecurityConfiguration.java
...servlet/OAuth2ResourceServerWebSecurityConfiguration.java
+2
-2
ReactiveOAuth2ResourceServerAutoConfigurationTests.java
...e/ReactiveOAuth2ResourceServerAutoConfigurationTests.java
+1
-1
pom.xml
spring-boot-project/spring-boot-dependencies/pom.xml
+1
-1
No files found.
spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/security/oauth2/resource/reactive/ReactiveOAuth2ResourceServerWebSecurityConfiguration.java
View file @
caf72214
...
...
@@ -42,8 +42,8 @@ class ReactiveOAuth2ResourceServerWebSecurityConfiguration {
@Bean
@ConditionalOnMissingBean
public
SecurityWebFilterChain
springSecurityFilterChain
(
ServerHttpSecurity
http
)
{
http
.
authorizeExchange
().
anyExchange
().
authenticated
().
and
()
.
oauth2
()
.
r
esourceServer
().
jwt
().
jwtDecoder
(
this
.
jwtDecoder
);
http
.
authorizeExchange
().
anyExchange
().
authenticated
().
and
()
.
oauth2R
esourceServer
().
jwt
().
jwtDecoder
(
this
.
jwtDecoder
);
return
http
.
build
();
}
...
...
spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/security/oauth2/resource/servlet/OAuth2ResourceServerWebSecurityConfiguration.java
View file @
caf72214
...
...
@@ -37,8 +37,8 @@ class OAuth2ResourceServerWebSecurityConfiguration {
@Override
protected
void
configure
(
HttpSecurity
http
)
throws
Exception
{
http
.
authorizeRequests
().
anyRequest
().
authenticated
().
and
()
.
oauth2
()
.
r
esourceServer
().
jwt
();
http
.
authorizeRequests
().
anyRequest
().
authenticated
().
and
()
.
oauth2R
esourceServer
().
jwt
();
}
}
...
...
spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/security/oauth2/resource/reactive/ReactiveOAuth2ResourceServerAutoConfigurationTests.java
View file @
caf72214
...
...
@@ -146,7 +146,7 @@ public class ReactiveOAuth2ResourceServerAutoConfigurationTests {
SecurityWebFilterChain
testSpringSecurityFilterChain
(
ServerHttpSecurity
http
,
ReactiveJwtDecoder
decoder
)
{
http
.
authorizeExchange
().
pathMatchers
(
"/message/**"
).
hasRole
(
"ADMIN"
)
.
anyExchange
().
authenticated
().
and
().
oauth2
().
r
esourceServer
().
jwt
()
.
anyExchange
().
authenticated
().
and
().
oauth2
R
esourceServer
().
jwt
()
.
jwtDecoder
(
decoder
);
return
http
.
build
();
}
...
...
spring-boot-project/spring-boot-dependencies/pom.xml
View file @
caf72214
...
...
@@ -166,7 +166,7 @@
<spring-plugin.version>
1.2.0.RELEASE
</spring-plugin.version>
<spring-restdocs.version>
2.0.2.RELEASE
</spring-restdocs.version>
<spring-retry.version>
1.2.2.RELEASE
</spring-retry.version>
<spring-security.version>
5.1.0.
RC1
</spring-security.version>
<spring-security.version>
5.1.0.
BUILD-SNAPSHOT
</spring-security.version>
<spring-session-bom.version>
Bean-M2
</spring-session-bom.version>
<spring-ws.version>
3.0.3.RELEASE
</spring-ws.version>
<sqlite-jdbc.version>
3.23.1
</sqlite-jdbc.version>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment