From 605466a52dc063700ac6c989fdb64ad9b623c26a Mon Sep 17 00:00:00 2001 From: Dmitry Ivankov Date: Thu, 4 Jul 2024 11:45:32 +0200 Subject: [PATCH 1/2] Drop NoAuthentication Auth implementation It throws upon use so isn't very useful, removing it makes sticking to making illegal states unrepresentable easier, also just a cleanup of unused code. --- build.sbt | 2 +- src/main/scala/com/cognite/sdk/scala/common/auth.scala | 7 ------- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/build.sbt b/build.sbt index 7f9cd763e..32dbf95ad 100644 --- a/build.sbt +++ b/build.sbt @@ -33,7 +33,7 @@ lazy val commonSettings = Seq( organization := "com.cognite", organizationName := "Cognite", organizationHomepage := Some(url("https://cognite.com")), - version := "2.23." + patchVersion, + version := "2.24." + patchVersion, isSnapshot := patchVersion.endsWith("-SNAPSHOT"), scalaVersion := scala213, // use 2.13 by default // handle cross plugin https://github.com/stringbean/sbt-dependency-lock/issues/13 diff --git a/src/main/scala/com/cognite/sdk/scala/common/auth.scala b/src/main/scala/com/cognite/sdk/scala/common/auth.scala index 1db44b27e..cafefd1a1 100644 --- a/src/main/scala/com/cognite/sdk/scala/common/auth.scala +++ b/src/main/scala/com/cognite/sdk/scala/common/auth.scala @@ -20,13 +20,6 @@ object Auth { } } -final case class NoAuthentication() extends Auth { - def auth[U[_], T, S](r: RequestT[U, T, S]): RequestT[U, T, S] = - throw new SdkException( - s"Authentication not provided" - ) -} - final case class BearerTokenAuth(bearerToken: String, override val project: Option[String] = None) extends Auth { def auth[U[_], T, S](r: RequestT[U, T, S]): RequestT[U, T, S] = From b28a233e3c91910b524ab25767408e7738dd802f Mon Sep 17 00:00:00 2001 From: Dmitry Ivankov Date: Thu, 22 Aug 2024 17:25:31 +0200 Subject: [PATCH 2/2] Update build.sbt --- build.sbt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.sbt b/build.sbt index b76323013..60d66b85f 100644 --- a/build.sbt +++ b/build.sbt @@ -40,7 +40,7 @@ lazy val commonSettings = Seq( organization := "com.cognite", organizationName := "Cognite", organizationHomepage := Some(url("https://cognite.com")), - version := "2.28." + patchVersion, + version := "2.29." + patchVersion, isSnapshot := patchVersion.endsWith("-SNAPSHOT"), scalaVersion := scala213, // use 2.13 by default // handle cross plugin https://github.com/stringbean/sbt-dependency-lock/issues/13