diff options
author | vlad <vlad@driver.xyz> | 2017-03-24 22:14:47 -0700 |
---|---|---|
committer | vlad <vlad@driver.xyz> | 2017-03-24 22:14:47 -0700 |
commit | b97bc7242d1686a303f6366755652b6bf93e3851 (patch) | |
tree | 45ba06837b85738afb34d84a6c9988b157a1314f /src/test/scala/xyz/driver/core | |
parent | 244691b58a233b2e4c7042742230245c539fea3d (diff) | |
download | driver-core-b97bc7242d1686a303f6366755652b6bf93e3851.tar.gz driver-core-b97bc7242d1686a303f6366755652b6bf93e3851.tar.bz2 driver-core-b97bc7242d1686a303f6366755652b6bf93e3851.zip |
PDW-238 Session validity verification support for `AuthProvider`
Diffstat (limited to 'src/test/scala/xyz/driver/core')
-rw-r--r-- | src/test/scala/xyz/driver/core/AuthTest.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/scala/xyz/driver/core/AuthTest.scala b/src/test/scala/xyz/driver/core/AuthTest.scala index c39d9da..e6025fb 100644 --- a/src/test/scala/xyz/driver/core/AuthTest.scala +++ b/src/test/scala/xyz/driver/core/AuthTest.scala @@ -31,8 +31,8 @@ class AuthTest extends FlatSpec with Matchers with MockitoSugar with ScalatestRo } val authStatusService = new AuthProvider[User](authorization, NoLogger) { - override def authenticatedUser(context: ServiceRequestContext): OptionT[Future, User] = OptionT.optionT[Future] { - if (context.contextHeaders.keySet.contains(AuthProvider.AuthenticationTokenHeader)) { + override def authenticatedUser(implicit ctx: ServiceRequestContext): OptionT[Future, User] = OptionT.optionT[Future] { + if (ctx.contextHeaders.keySet.contains(AuthProvider.AuthenticationTokenHeader)) { Future.successful(Some(BasicUser(Id[User]("1"), Set(TestRole)))) } else { Future.successful(Option.empty[User]) |