如何实现Slick+;MySQL+;社会安全?

如何实现Slick+;MySQL+;社会安全?,mysql,scala,playframework,slick,securesocial,Mysql,Scala,Playframework,Slick,Securesocial,如何使用Slick(1.0.1)和MySQL数据库实现SecureSocial(最新快照版本)插件 我想我已经完全配置好了一切 我的用户模型类中有类似的内容: package models.auth import securesocial.core._ import scala.slick.driver.MySQLDriver._ case class User(identityId: IdentityId, firstName: String

如何使用
Slick(1.0.1)
MySQL
数据库实现
SecureSocial
(最新快照版本)插件

我想我已经完全配置好了一切

我的用户模型类中有类似的内容:

package models.auth

  import securesocial.core._
  import scala.slick.driver.MySQLDriver._

  case class User(identityId: IdentityId,
                  firstName: String,
                  lastName: String,
                  fullName: String,
                  email: Option[String],
                  avatarUrl: Option[String],
                  authMethod: AuthenticationMethod,
                  oAuth1Info: Option[OAuth1Info] = None,
                  oAuth2Info: Option[OAuth2Info] = None,
                  passwordInfo: Option[PasswordInfo] = None) extends Identity

  object User {
      def apply(i: Identity): User = {
          User(
              i.identityId,
              i.firstName,
              i.lastName,
              i.fullName,
              i.email,
              i.avatarUrl,
              i.authMethod,
              i.oAuth1Info,
              i.oAuth2Info,
              i.passwordInfo
          )
     }
}

object Users extends Table[User]("user") {

    def userId = column[Long]("id", O.PrimaryKey, O.AutoInc)

    def providerId = column[String]("providerId")

    def email = column[Option[String]]("email")

    def firstName = column[String]("firstName")

    def lastName = column[String]("lastName")

    def fullName = column[String]("fullName")

    def avatarUrl = column[Option[String]]("avatarUrl")

    def authMethod = column[AuthenticationMethod]("authMethod")

    // oAuth 1
    def token = column[Option[String]]("token")

    def secret = column[Option[String]]("secret")

    // oAuth 2
    def accessToken = column[Option[String]]("accessToken")

    def tokenType = column[Option[String]]("tokenType")

    def expiresIn = column[Option[Int]]("expiresIn")

    def refreshToken = column[Option[String]]("refreshToken")

    // passwordInfo
    def hasher = column[String]("hasher")

    def password = column[String]("password")

    def salt = column[String]("salt")

}
我下一步要做什么?要使用哪些导入和实现哪些方法?
文档非常糟糕。

您必须通过扩展
UserServicePlugin
对象来实现
UserService
特性

文档没有那么差:

SecureSocial依赖于
UserService
的实现来处理与保存/查找用户相关的所有操作


好啊很好。正如我看到的,我必须像插件提供者一样使用它。是吗?是的。将此插件添加到
play.plugins