diff --git a/client-common/src/main/scala/org/thp/client/Authentication.scala b/client-common/src/main/scala/org/thp/client/Authentication.scala index c20887eb57..a5bd38f7b2 100644 --- a/client-common/src/main/scala/org/thp/client/Authentication.scala +++ b/client-common/src/main/scala/org/thp/client/Authentication.scala @@ -28,6 +28,8 @@ object Authentication { case PasswordAuthentication(username, password) => Json.obj("type" -> "basic", "username" -> username, "password" -> password) case KeyAuthentication(key, "") => Json.obj("type" -> "key", "key" -> key) case KeyAuthentication(key, "Bearer ") => Json.obj("type" -> "bearer", "key" -> key) + case NoAuthentication => Json.obj("type" -> "none") + case KeyAuthentication(key, other) => Json.obj("type" -> other, "key" -> key) } implicit val format: Format[Authentication] = Format(reads, writes) }