I am currently trying to update my sbt project from scala 2.11.2 to scala 2.12.4. Therefore I had to update my play-authenticate dependency from "com.feth" % "play-authenticate_2.11" % "0.6.9" to "com.feth" %% "play-authenticate" % "0.9.0" and got the following error:
value isLoggedIn is not a member of object com.feth.play.module.pa.PlayAuthenticate
The same applies for:
value getUser is not a member of object com.feth.play.module.pa.PlayAuthenticate
By the way, I have updated to play 2.6.0 which should be compatible with play-authenticate 0.9.0 (see).
My library dependencies before:
libraryDependencies ++= Seq(
jdbc,
ws,
cache,
javaEbean,
"com.h2database" % "h2" % "1.4.181",
"mysql" % "mysql-connector-java" % "5.1.6",
"org.postgresql" % "postgresql" % "9.4-1201-jdbc41",
"be.objectify" %% "deadbolt-java" % "2.3.3",
"be.objectify" %% "deadbolt-scala" % "2.3.3",
"org.webjars" % "bootstrap" % "3.2.0",
"org.scalatestplus" %% "play" % "1.1.0" % "test",
"com.nulab-inc" %% "play2-oauth2-provider" % "0.14.0",
"com.feth" % "play-authenticate_2.11" % "0.6.9",
"com.google.inject" % "guice" % "3.0",
javaCore,
"com.esotericsoftware.kryo" % "kryo" % "2.23.0",
"org.zeromq" % "jeromq" % "0.3.5",
"org.reactivemongo" %% "play2-reactivemongo" % "0.10.5.0.akka23",
"org.scalatestplus" %% "play" % "1.1.0" % "test",
"com.typesafe.play" %% "play-json" % "2.3.10",
"com.typesafe.akka" %% "akka-actor" % "2.3.14"
)
and after:
libraryDependencies ++= Seq(
jdbc,
ws,
ehcache,
//javaEbean,
"com.h2database" % "h2" % "1.4.181",
"mysql" % "mysql-connector-java" % "8.0.28",
"org.postgresql" % "postgresql" % "9.4-1201-jdbc41",
"be.objectify" %% "deadbolt-java" % "2.6.0",
"be.objectify" %% "deadbolt-scala" % "2.6.0",
"org.webjars" % "bootstrap" % "3.2.0",
"org.scalatestplus.play" %% "scalatestplus-play" % "3.0.0",
"com.nulab-inc" %% "play2-oauth2-provider" % "1.3.0",
"com.feth" %% "play-authenticate" % "0.9.0",
"com.google.inject" % "guice" % "4.1.0",
javaCore,
"com.esotericsoftware.kryo" % "kryo" % "2.23.0",
"org.zeromq" % "jeromq" % "0.3.5",
"org.reactivemongo" %% "play2-reactivemongo" % "0.12.4",
"org.scalatestplus.play" %% "scalatestplus-play" % "3.0.0" % "test",
"com.typesafe.play" %% "play-json" % "2.6.0",
"com.typesafe.akka" %% "akka-actor" % "2.5.3"
)