diff options
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/scala/xyz/driver/pdsuicommon/auth/AuthenticatedRequestContext.scala | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/scala/xyz/driver/pdsuicommon/auth/AuthenticatedRequestContext.scala b/src/main/scala/xyz/driver/pdsuicommon/auth/AuthenticatedRequestContext.scala index aa4ce28..a21b011 100644 --- a/src/main/scala/xyz/driver/pdsuicommon/auth/AuthenticatedRequestContext.scala +++ b/src/main/scala/xyz/driver/pdsuicommon/auth/AuthenticatedRequestContext.scala @@ -4,7 +4,7 @@ import xyz.driver.entities.users.UserInfo import xyz.driver.pdsuicommon.logging._ import xyz.driver.pdsuicommon.domain.User -class AuthenticatedRequestContext(val driverUser: UserInfo, override val requestId: RequestId) +class AuthenticatedRequestContext(val driverUser: UserInfo, override val requestId: RequestId, val authToken: String = "") extends AnonymousRequestContext(requestId) { val executor: User = new User(driverUser) @@ -25,8 +25,8 @@ class AuthenticatedRequestContext(val driverUser: UserInfo, override val request object AuthenticatedRequestContext { - def apply(driverUser: UserInfo) = - new AuthenticatedRequestContext(driverUser, RequestId()) + def apply(driverUser: UserInfo, authToken: String = "") = + new AuthenticatedRequestContext(driverUser, RequestId(), authToken) implicit def toPhiString(x: AuthenticatedRequestContext): PhiString = { phi"AuthenticatedRequestContext(executor=${x.executor}, requestId=${x.requestId})" |