lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tyrone Tse <tyrone...@hotmail.com>
Subject JWT Auth plugin (https://github.com/cominvent/solr-auth-jwt) for Solr 7.2 Errors
Date Fri, 13 Sep 2019 16:30:36 GMT
I am testing the JWT Auth plugin from
https://github.com/cominvent/solr-auth-jwt
as my project is using Solr 7.2.

I downloaded the master branch for the code, and I built the

jwt-auth-1.0.0.jar
with the mvn package command.

I then copied the jar to my $SOLR_HOME/lib/

I also downloaded the jose4j-0.6.3.jar
<https://bitbucket.org/b_c/jose4j/downloads/jose4j-0.6.3.jar> and
copied this to $SOLR_HOME/lib/
I created the following security.json file in $SOLR_HOME/server/solr

{
  "authentication": {
    "class":"com.cominvent.solr.JWTAuthPlugin",
        "jwk" : {
                "kty": "oct",
                "use": "sig",
                "kid": "solr",
                "k":
"pIpVnjhuAj9DBg8e2lwya7o_uZMM3Wqo2eK0uchOza0vBS-orZNYTkLcHTLXF9JaCBR08tWfFEWVPENF6sXKuaj8Mn65Kc3QUmS-csblVvjj69dXk2Mi-Zs2iDDM3QyyvdiyRpfxE-xKwwjhU47xs7M0Dq69I1UE5nrFkczLf9qe3b47ha3eBQDm1_zg8EVwxadJ7gfQ97jn2MtT6hHrts9YD6_Z_heAdYC2QYjBBIdEXzZgHSKqmPNNhDvAChF9AfmNiUlfAG_g0jMMLKYEUv6ck3KJA6A1JBq1iEstjvF7hchFgdgyVRCR5P8UM6n6Hb0YrHjjANyEYIZD9mFfBQ",
                "alg": "HS256"
                }
  }
}

When I start solr, I am seeing a 503 error when I go to
http://localhost:8983/solr/

HTTP ERROR 503

Problem accessing /solr/. Reason:
Service Unavailable

When I check the solr.log file I am seeing the following error

2019-09-13 15:09:27.816 ERROR (main) [   ] o.a.s.s.SolrDispatchFilter Could
not start Solr. Check solr/home property and the logs
2019-09-13 15:09:27.838 ERROR (main) [   ] o.a.s.c.SolrCore
null:java.lang.NoClassDefFoundError:
org/apache/solr/security/HttpClientBuilderPlugin
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:760)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message