HI All,
Recently we migrated from solr 8 to Solr 9 , in SOLR 8 we did not face any
issue using SOLR JWT Authorization , but in Solr 9 we are seeing the below
error, after going through the document it is saying to enable the JWT
module , could you please help how to enable the JWT module in solr.in.sh
ERROR - 2023-01-31 01:10:12.871; [ ]
org.apache.solr.common.cloud.ZkStateReader$2; Error running collections
node listener
org.apache.solr.common.SolrException: * Error loading class
'solr.JWTAuthPlugin'*
at
org.apache.solr.core.SolrResourceLoader.findClass(SolrResourceLoader.java:543)
~[solr-core-9.0.0.jar:9.0.0 a4eb7aa123dc53f8dac74d80b66a490f2d6b4a26 -
janhoy - 2022-05-05 01:00:08]
at
org.apache.solr.core.SolrResourceLoader.newInstance(SolrResourceLoader.java:604)
~[solr-core-9.0.0.jar:9.0.0 a4eb7aa123dc53f8dac74d80b66a490f2d6b4a26 -
janhoy - 2022-05-05 01:00:08]
could you please help me to enable solr module for *solr.JWTAuthPlugin in
solr 9.0 *
security.json
{
"authentication": {
"class": "solr.MultiAuthPlugin",
"schemes": [{
"scheme": "bearer",
"blockUnknown": true,
"class": "solr.JWTAuthPlugin",
"wellKnownUrl": "
https://auth./ausl3dal2JfnJ2ENi4h6/.well-known/openid-configuration",
"clientId": "0oa32rh1yhd3SoSUK4h7",
"redirectUris": ["http://hostname:8983/solr
",
"http:// hostname 8983/solr",
"http:// hostname:8983/solr",
"http:// hostname:8983/solr/admin"
],
"rolesClaim": "roles",
"adminUiScope": "openid"
},
{
"scheme": "basic",
"blockUnknown": true,
"class": "solr.BasicAuthPlugin",
"credentials": {
"solr":
"IV0EHq1OnNrj6gvRCwvFwTrZ1+z1oBbnQdiVC3otuq0=
Ndd7LKvVBAaZIF0QAVi1ekCfAJXr1GGfLtRUXhgrF8c="
}
}
]
}
}