epugh commented on a change in pull request #2430:
URL: https://github.com/apache/lucene-solr/pull/2430#discussion_r583262322
##########
File path: solr/core/src/java/org/apache/solr/security/JWTIssuerConfig.java
##########
@@ -349,12 +349,18 @@ public HttpsJwksFactory(long jwkCacheDuration, long
refreshReprieveThreshold) {
this.jwkCacheDuration = jwkCacheDuration;
this.refreshReprieveThreshold = refreshReprieveThreshold;
}
-
+
+ /**
+ * While the class name is HttpsJwks, it actually works with plain http
formatted url as well.
+ * @param url the Url to connect to for JWK details.
+ */
private HttpsJwks create(String url) {
try {
URL jwksUrl = new URL(url);
- if (!"https".equalsIgnoreCase(jwksUrl.getProtocol())) {
- throw new SolrException(SolrException.ErrorCode.SERVER_ERROR,
PARAM_JWKS_URL + " must use HTTPS");
+ if ("http".equalsIgnoreCase(jwksUrl.getProtocol())) {
+ if (log.isWarnEnabled()) {
Review comment:
I think I had it puking, and tried to fix this. Do we have a pattern?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]