Class

securesocial.core

OAuth2Provider

Related Doc: package core

Permalink

abstract class OAuth2Provider extends IdentityProvider with ApiSupport

Base class for all OAuth2 providers

Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. OAuth2Provider
  2. ApiSupport
  3. IdentityProvider
  4. AnyRef
  5. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new OAuth2Provider(routesService: RoutesService, client: OAuth2Client, cacheService: CacheService)

    Permalink

Type Members

  1. case class LoginJson(email: String, info: OAuth2Info) extends Product with Serializable

    Permalink

    Defines the request format for api authentication requests

    Defines the request format for api authentication requests

    email

    the user email

    info

    the OAuth2Info as returned by some Oauth2 service on the client side (eg: JS app)

Abstract Value Members

  1. abstract def fillProfile(info: OAuth2Info): Future[BasicProfile]

    Permalink
  2. abstract val id: String

    Permalink

    The id for this provider.

    The id for this provider.

    Definition Classes
    IdentityProvider

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. implicit val LoginJsonReads: Reads[LoginJson]

    Permalink

    A Reads instance for the LoginJson case class

  5. implicit val OAuth2InfoReads: Reads[OAuth2Info]

    Permalink

    A Reads instance for the OAuth2Info case class

  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def authMethod: AuthenticationMethod

    Permalink

    Subclasses need to implement this to specify the authentication method

    Subclasses need to implement this to specify the authentication method

    Definition Classes
    OAuth2ProviderIdentityProvider
  8. def authenticate()(implicit request: Request[AnyContent]): Future[AuthenticationResult]

    Permalink

    Authenticates the user and fills the profile information.

    Authenticates the user and fills the profile information.

    request

    the current request

    returns

    a future AuthenticationResult

    Definition Classes
    OAuth2ProviderIdentityProvider
  9. def authenticateForApi(implicit request: Request[AnyContent]): Future[AuthenticationResult]

    Permalink

    Authenticates a user

    Authenticates a user

    Definition Classes
    OAuth2ProviderApiSupport
  10. def buildInfo(response: WSResponse): OAuth2Info

    Permalink
    Attributes
    protected
  11. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  12. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  13. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  14. implicit val executionContext: ExecutionContext

    Permalink
    Attributes
    protected
  15. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  16. def getAccessToken[A](code: String)(implicit request: Request[A]): Future[OAuth2Info]

    Permalink
    Attributes
    protected
  17. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  18. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  19. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  20. val logger: Logger

    Permalink
    Attributes
    protected
  21. val malformedJson: String

    Permalink

    The error returned for malformed requests

  22. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  23. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  24. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  25. val settings: OAuth2Settings

    Permalink
  26. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  27. def toString(): String

    Permalink

    Returns the provider name

    Returns the provider name

    Definition Classes
    IdentityProvider → AnyRef → Any
  28. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from ApiSupport

Inherited from IdentityProvider

Inherited from AnyRef

Inherited from Any

Ungrouped