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
7c1a8c10
Commit
7c1a8c10
authored
Jun 26, 2020
by
Andy Wilkinson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Drop back to Spring Security 5.4.0-M1
See gh-21932
parent
742ac877
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
8 deletions
+5
-8
ReactiveOAuth2ResourceServerAutoConfigurationTests.java
...e/ReactiveOAuth2ResourceServerAutoConfigurationTests.java
+2
-3
OAuth2ResourceServerAutoConfigurationTests.java
...e/servlet/OAuth2ResourceServerAutoConfigurationTests.java
+2
-4
build.gradle
spring-boot-project/spring-boot-dependencies/build.gradle
+1
-1
No files found.
spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/security/oauth2/resource/reactive/ReactiveOAuth2ResourceServerAutoConfigurationTests.java
View file @
7c1a8c10
...
...
@@ -47,7 +47,6 @@ import org.springframework.security.config.web.server.ServerHttpSecurity;
import
org.springframework.security.core.userdetails.MapReactiveUserDetailsService
;
import
org.springframework.security.oauth2.core.DelegatingOAuth2TokenValidator
;
import
org.springframework.security.oauth2.core.OAuth2TokenValidator
;
import
org.springframework.security.oauth2.jose.jws.SignatureAlgorithm
;
import
org.springframework.security.oauth2.jwt.Jwt
;
import
org.springframework.security.oauth2.jwt.JwtIssuerValidator
;
import
org.springframework.security.oauth2.jwt.NimbusReactiveJwtDecoder
;
...
...
@@ -106,8 +105,8 @@ class ReactiveOAuth2ResourceServerAutoConfigurationTests {
"spring.security.oauth2.resourceserver.jwt.jws-algorithm=RS512"
)
.
run
((
context
)
->
{
NimbusReactiveJwtDecoder
nimbusReactiveJwtDecoder
=
context
.
getBean
(
NimbusReactiveJwtDecoder
.
class
);
assertThat
(
nimbusReactiveJwtDecoder
).
extracting
(
"jwtProcessor.arg$
1.signatureAlgorithms"
).
matches
(
(
algorithms
)
->
((
Set
<
SignatureAlgorithm
>)
algorithms
).
contains
(
Signature
Algorithm
.
RS512
));
assertThat
(
nimbusReactiveJwtDecoder
).
extracting
(
"jwtProcessor.arg$
2"
)
.
matches
((
algorithms
)
->
((
Set
<
JWSAlgorithm
>)
algorithms
).
contains
(
JWS
Algorithm
.
RS512
));
});
}
...
...
spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/security/oauth2/resource/servlet/OAuth2ResourceServerAutoConfigurationTests.java
View file @
7c1a8c10
...
...
@@ -99,8 +99,7 @@ class OAuth2ResourceServerAutoConfigurationTests {
JwtDecoder
jwtDecoder
=
context
.
getBean
(
JwtDecoder
.
class
);
Object
processor
=
ReflectionTestUtils
.
getField
(
jwtDecoder
,
"jwtProcessor"
);
Object
keySelector
=
ReflectionTestUtils
.
getField
(
processor
,
"jwsKeySelector"
);
assertThat
(
keySelector
).
hasFieldOrPropertyWithValue
(
"jwsAlgs"
,
Collections
.
singleton
(
JWSAlgorithm
.
RS256
));
assertThat
(
keySelector
).
hasFieldOrPropertyWithValue
(
"jwsAlg"
,
JWSAlgorithm
.
RS256
);
});
}
...
...
@@ -113,8 +112,7 @@ class OAuth2ResourceServerAutoConfigurationTests {
JwtDecoder
jwtDecoder
=
context
.
getBean
(
JwtDecoder
.
class
);
Object
processor
=
ReflectionTestUtils
.
getField
(
jwtDecoder
,
"jwtProcessor"
);
Object
keySelector
=
ReflectionTestUtils
.
getField
(
processor
,
"jwsKeySelector"
);
assertThat
(
keySelector
).
hasFieldOrPropertyWithValue
(
"jwsAlgs"
,
Collections
.
singleton
(
JWSAlgorithm
.
RS384
));
assertThat
(
keySelector
).
hasFieldOrPropertyWithValue
(
"jwsAlg"
,
JWSAlgorithm
.
RS384
);
assertThat
(
getBearerTokenFilter
(
context
)).
isNotNull
();
});
}
...
...
spring-boot-project/spring-boot-dependencies/build.gradle
View file @
7c1a8c10
...
...
@@ -1712,7 +1712,7 @@ bom {
]
}
}
library
(
"Spring Security"
,
"5.4.0-
SNAPSHOT
"
)
{
library
(
"Spring Security"
,
"5.4.0-
M1
"
)
{
group
(
"org.springframework.security"
)
{
imports
=
[
"spring-security-bom"
...
...
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