From ee55a3d09763ead45cd6e6d10d7edd585ae60294 Mon Sep 17 00:00:00 2001 From: Eike Kettner Date: Wed, 2 Oct 2024 09:39:13 +0200 Subject: [PATCH] Attach credentials to solr schema requests --- .../src/main/scala/io/renku/solr/client/SolrClientImpl.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/solr-client/src/main/scala/io/renku/solr/client/SolrClientImpl.scala b/modules/solr-client/src/main/scala/io/renku/solr/client/SolrClientImpl.scala index 2742b6de..388d2260 100644 --- a/modules/solr-client/src/main/scala/io/renku/solr/client/SolrClientImpl.scala +++ b/modules/solr-client/src/main/scala/io/renku/solr/client/SolrClientImpl.scala @@ -122,12 +122,12 @@ private class SolrClientImpl[F[_]: Async](val config: SolrConfig, underlying: Cl def getSchema: F[SchemaResponse] = val url = solrUrl / "schema" - val req = Method.GET(url) + val req = Method.GET(url).withBasicAuth(credentials) underlying.expect[SchemaResponse](req) def getStatus: F[StatusResponse] = val url = config.baseUrl / "api" / "cores" - val req = Method.GET(url) + val req = Method.GET(url).withBasicAuth(credentials) underlying.expect[StatusResponse](req) def createCore(name: String, configSet: Option[String]): F[Unit] =