This is an automated email from the ASF dual-hosted git repository.
haonan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iotdb.git
The following commit(s) were added to refs/heads/master by this push:
new 8c5bef7 Fixed openid bug (#3073)
8c5bef7 is described below
commit 8c5bef7c59f4a9b70c74e65b9c5f266da7668245
Author: CloudWise-Lukemiao
<[email protected]>
AuthorDate: Thu Apr 29 14:19:00 2021 +0800
Fixed openid bug (#3073)
* Fix the exception of starting report when the configuration openid_url is
HTTP and using keyclock to log in without password and times abnormal bug
* Fix that when openid_url is http://xxxxx, iotdb starts to report an error
Co-authored-by: 282583553 <[email protected]>
---
.../java/org/apache/iotdb/db/auth/authorizer/OpenIdAuthorizer.java | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git
a/server/src/main/java/org/apache/iotdb/db/auth/authorizer/OpenIdAuthorizer.java
b/server/src/main/java/org/apache/iotdb/db/auth/authorizer/OpenIdAuthorizer.java
index 74dd962..86e1895 100644
---
a/server/src/main/java/org/apache/iotdb/db/auth/authorizer/OpenIdAuthorizer.java
+++
b/server/src/main/java/org/apache/iotdb/db/auth/authorizer/OpenIdAuthorizer.java
@@ -99,8 +99,7 @@ public class OpenIdAuthorizer extends BasicAuthorizer {
logger.debug("Using Provider Metadata: {}", providerMetadata);
try {
- URL url =
- new URI(providerMetadata.getJWKSetURI().toString().replace("http",
"https")).toURL();
+ URL url = new URI(providerMetadata.getJWKSetURI().toString()).toURL();
logger.debug("Using url {}", url);
return getProviderRSAJWK(url.openStream());
} catch (IOException e) {