Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drop NoAuthentication Auth implementation #744

Merged
merged 4 commits into from
Aug 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 0 additions & 7 deletions src/main/scala/com/cognite/sdk/scala/common/auth.scala
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,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) extends Auth {
def auth[U[_], T, S](r: RequestT[U, T, S]): RequestT[U, T, S] =
r.header("Authorization", s"Bearer $bearerToken")
Expand Down
Loading