aboutsummaryrefslogtreecommitdiff
path: root/src/test/scala
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/scala')
-rw-r--r--src/test/scala/xyz/driver/core/AuthTest.scala4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/test/scala/xyz/driver/core/AuthTest.scala b/src/test/scala/xyz/driver/core/AuthTest.scala
index 76c2933..d1a37a2 100644
--- a/src/test/scala/xyz/driver/core/AuthTest.scala
+++ b/src/test/scala/xyz/driver/core/AuthTest.scala
@@ -31,6 +31,10 @@ class AuthTest extends FlatSpec with Matchers with MockitoSugar with ScalatestRo
}
val authStatusService = new AuthProvider[User](authorization, NoLogger) {
+
+ override def isSessionValid(user: User)(implicit ctx: ServiceRequestContext): Future[Boolean] =
+ Future.successful(true)
+
override def authenticatedUser(implicit ctx: ServiceRequestContext): OptionT[Future, User] =
OptionT.optionT[Future] {
if (ctx.contextHeaders.keySet.contains(AuthProvider.AuthenticationTokenHeader)) {