diff --git a/core/src/main/scala/org/thp/scalligraph/auth/MultiAuthSrv.scala b/core/src/main/scala/org/thp/scalligraph/auth/MultiAuthSrv.scala index e47503ec..14dc21bf 100644 --- a/core/src/main/scala/org/thp/scalligraph/auth/MultiAuthSrv.scala +++ b/core/src/main/scala/org/thp/scalligraph/auth/MultiAuthSrv.scala @@ -60,10 +60,10 @@ class MultiAuthSrv(configuration: Configuration, appConfig: ApplicationConfig, a success => Right(success) ) }.fold({ - case Seq() => Seq(("", AuthorizationError("no authentication provider found"))) - case otherwise => otherwise + case Seq() => Left(Seq(("", AuthorizationError("no authentication provider found")))) + case otherwise => Left(otherwise) }, - a => a + a => Right(a) ) either match {