Skip to content

Commit d4bd053

Browse files
quaffwilkinsona
authored andcommitted
Fix wrong "public-key-location" configuration key
See gh-46627 Signed-off-by: Yanming Zhou <[email protected]>
1 parent 85fb93e commit d4bd053

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)