Skip to content

Commit 4720956

Browse files
committed
Merge branch '3.5.x'
Closes gh-46637
2 parents 80ff7cb + 9021b68 commit 4720956

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

module/spring-boot-security-oauth2-resource-server/src/main/java/org/springframework/boot/security/oauth2/server/resource/autoconfigure/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 4.0.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)