WHAT I DID:
I am trying to implement oauth2 provider using Play framework. I am using the "scala-oauth2-provider" sample to do this. "https://github.com/nulab/scala-oauth2-provider"
I have listed the version that I used in my application:
Play -- 2.5
database -- Mysql 5.1.22
ISSUE:
AuthCode.scala:19: could not find implicit value for parameter tm: scala.slick.ast.TypedType[org.joda.time.DateTime] [error] def createdAt = columnDateTime
Code Snippet:
import java.util.UUID
import org.joda.time.DateTime
import scala.slick.driver.MySQLDriver.simple._
case class AuthCode(authorizationCode: String, userGuid: UUID, redirectUri: Option[String], createdAt: DateTime, scope: Option[String], clientId: Option[String], expiresIn: Int)
class AuthCodes(tag: Tag) extends Table[AuthCode](tag, "auth_codes") {
def authorizationCode = column[String]("authorization_code", O.PrimaryKey)
def userGuid = column[UUID]("user_guid")
def redirectUri = column[Option[String]]("redirect_uri")
def createdAt = column[DateTime]("created_at")
def scope = column[Option[String]]("scope")
def clientId = column[Option[String]]("client_id")
def expiresIn = column[Int]("expires_in")
def * = (authorizationCode, userGuid, redirectUri, createdAt, scope, clientId, expiresIn) <> (AuthCode.tupled, AuthCode.unapply)
}
How do I fix this issue? Can anyone help me to fix this issue?
Note: I have also tried the solution https://stackoverflow.com/a/22578950/1584121. But I am getting same issue :(