Skip to content

Commit 4baa005

Browse files
committed
Merge pull request #46627 from quaff
* gh-46627: Fix wrong "public-key-location" configuration key Closes gh-46627
2 parents 85fb93e + d4bd053 commit 4baa005

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/security/oauth2/resource/OAuth2ResourceServerProperties.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
* @author Artsiom Yudovin
3737
* @author Mushtaq Ahmed
3838
* @author Yan Kardziyaka
39+
* @author Yanming Zhou
3940
* @since 2.1.0
4041
*/
4142
@ConfigurationProperties(prefix = "spring.security.oauth2.resourceserver")
@@ -174,7 +175,7 @@ public void setPrincipalClaimName(String principalClaimName) {
174175
}
175176

176177
public String readPublicKey() throws IOException {
177-
String key = "spring.security.oauth2.resourceserver.public-key-location";
178+
String key = "spring.security.oauth2.resourceserver.jwt.public-key-location";
178179
Assert.notNull(this.publicKeyLocation, "PublicKeyLocation must not be null");
179180
if (!this.publicKeyLocation.exists()) {
180181
throw new InvalidConfigurationPropertyValueException(key, this.publicKeyLocation,

0 commit comments

Comments
 (0)