Skip to content

Commit 9021b68

Browse files
committed
Merge branch '3.4.x' into 3.5.x
Closes gh-46636
2 parents 09ed59f + 4baa005 commit 9021b68

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
@@ -35,6 +35,7 @@
3535
* @author Artsiom Yudovin
3636
* @author Mushtaq Ahmed
3737
* @author Yan Kardziyaka
38+
* @author Yanming Zhou
3839
* @since 2.1.0
3940
*/
4041
@ConfigurationProperties("spring.security.oauth2.resourceserver")
@@ -173,7 +174,7 @@ public void setPrincipalClaimName(String principalClaimName) {
173174
}
174175

175176
public String readPublicKey() throws IOException {
176-
String key = "spring.security.oauth2.resourceserver.public-key-location";
177+
String key = "spring.security.oauth2.resourceserver.jwt.public-key-location";
177178
if (this.publicKeyLocation == null) {
178179
throw new InvalidConfigurationPropertyValueException(key, this.publicKeyLocation,
179180
"No public key location specified");

0 commit comments

Comments
 (0)