mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-10-03 07:49:03 +00:00
Merge pull request #46627 from quaff
* gh-46627: Fix wrong "public-key-location" configuration key Closes gh-46627
This commit is contained in:
+2
-1
@@ -36,6 +36,7 @@ import org.springframework.util.StreamUtils;
|
||||
* @author Artsiom Yudovin
|
||||
* @author Mushtaq Ahmed
|
||||
* @author Yan Kardziyaka
|
||||
* @author Yanming Zhou
|
||||
* @since 2.1.0
|
||||
*/
|
||||
@ConfigurationProperties(prefix = "spring.security.oauth2.resourceserver")
|
||||
@@ -174,7 +175,7 @@ public class OAuth2ResourceServerProperties {
|
||||
}
|
||||
|
||||
public String readPublicKey() throws IOException {
|
||||
String key = "spring.security.oauth2.resourceserver.public-key-location";
|
||||
String key = "spring.security.oauth2.resourceserver.jwt.public-key-location";
|
||||
Assert.notNull(this.publicKeyLocation, "PublicKeyLocation must not be null");
|
||||
if (!this.publicKeyLocation.exists()) {
|
||||
throw new InvalidConfigurationPropertyValueException(key, this.publicKeyLocation,
|
||||
|
||||
Reference in New Issue
Block a user