Thanks, the above solution has worked.

Thanks
Vinay

On Tue, Jan 31, 2023 at 4:32 AM Jan Høydahl <jan....@cominvent.com> wrote:

> Hi
>
> Have you read the documentation?
>
>
> JWT Authentication Plugin :: Apache Solr Reference Guide
> <https://solr.apache.org/guide/solr/latest/deployment-guide/jwt-authentication-plugin.html>
> solr.apache.org
> <https://solr.apache.org/guide/solr/latest/deployment-guide/jwt-authentication-plugin.html>
> [image: favicon.ico]
> <https://solr.apache.org/guide/solr/latest/deployment-guide/jwt-authentication-plugin.html>
> <https://solr.apache.org/guide/solr/latest/deployment-guide/jwt-authentication-plugin.html>
>
> You typically set the SOLR_MODULES=jwt-auth environment-var, or pass
> -Dsolr.modules=jwt-auth when starting Solr, and then it should work.
>
> Jan
>
> 31. jan. 2023 kl. 07:15 skrev Vinay Kumar <vinaykumar2...@gmail.com>:
>
> 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="
>                                }
>                        }
>                ]
>        }
>
>
> }
>
>
>

Reply via email to