com.mohiva.play.silhouette.core.providers.oauth2

FacebookProvider

abstract class FacebookProvider extends OAuth2Provider

A Facebook OAuth2 Provider.

See also

https://developers.facebook.com/docs/facebook-login/access-tokens

https://developers.facebook.com/docs/graph-api/reference/user

https://developers.facebook.com/tools/explorer

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. FacebookProvider
  2. OAuth2Provider
  3. Logger
  4. SocialProvider
  5. SocialProfileBuilder
  6. Provider
  7. AnyRef
  8. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new FacebookProvider(cacheLayer: CacheLayer, httpLayer: HTTPLayer, settings: OAuth2Settings)

    cacheLayer

    The cache layer implementation.

    httpLayer

    The HTTP layer implementation.

    settings

    The provider settings.

Type Members

  1. type JsonParser = (JsValue) ⇒ CommonSocialProfile[OAuth2Info]

    The Json parser signature.

    The Json parser signature.

    Definition Classes
    SocialProfileBuilder
  2. type Parser = (OAuth2Info) ⇒ (JsValue) ⇒ CommonSocialProfile[OAuth2Info]

    The parser signature.

    The parser signature.

    Definition Classes
    SocialProfileBuilder
  3. abstract type Profile <: SocialProfile[OAuth2Info]

    The type of the profile.

    The type of the profile.

    Definition Classes
    SocialProfileBuilder

Abstract Value Members

  1. abstract def parseProfile(parser: (JsValue) ⇒ CommonSocialProfile[OAuth2Info], json: JsValue): Try[Profile]

    Parses the social profile with the given Json parser.

    Parses the social profile with the given Json parser.

    parser

    The Json parser to parse the most common profile.

    json

    The Json from the social provider.

    returns

    The social profile from given result.

    Attributes
    protected
    Definition Classes
    SocialProfileBuilder

Concrete Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def authenticate()(implicit request: RequestHeader): Future[Either[SimpleResult, Profile]]

    Authenticates the user and fills the profile information.

    Authenticates the user and fills the profile information.

    Returns either a SocialProfile if all went OK or a Result that the controller sends to the browser (e.g.: in the case of OAuth where the user needs to be redirected to the service provider).

    request

    The request header.

    returns

    On success either the social profile or a simple result, otherwise a failure.

    Definition Classes
    SocialProvider
  8. def buildInfo(response: Response): Try[OAuth2Info]

    Builds the OAuth2 info.

    Builds the OAuth2 info.

    Facebook does not follow the OAuth2 spec :-\

    response

    The response from the provider.

    returns

    The OAuth2 info on success, otherwise an failure.

    Attributes
    protected
    Definition Classes
    FacebookProviderOAuth2Provider
  9. def buildProfile(authInfo: OAuth2Info): Future[Profile]

    Builds the social profile.

    Builds the social profile.

    authInfo

    The auth info received from the provider.

    returns

    On success the build social profile, otherwise a failure.

    Attributes
    protected
    Definition Classes
    FacebookProviderSocialProfileBuilder
  10. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. def doAuth()(implicit request: RequestHeader): Future[Either[SimpleResult, OAuth2Info]]

    Starts the authentication process.

    Starts the authentication process.

    request

    The request header.

    returns

    Either a Result or the auth info from the provider.

    Attributes
    protected
    Definition Classes
    OAuth2ProviderSocialProvider
  12. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  14. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. def getAccessToken(code: String): Future[OAuth2Info]

    Gets the access token.

    Gets the access token.

    code

    The access code.

    returns

    The info containing the access token.

    Attributes
    protected
    Definition Classes
    OAuth2Provider
  16. final def getClass(): Class[_]

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

    Definition Classes
    AnyRef → Any
  18. val headers: Seq[(String, String)]

    A list with headers to send to the API.

    A list with headers to send to the API.

    Attributes
    protected
    Definition Classes
    OAuth2Provider
  19. def id: String

    Gets the provider ID.

    Gets the provider ID.

    returns

    The provider ID.

    Definition Classes
    FacebookProviderProvider
  20. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  21. val logger: play.api.Logger

    A named logger instance.

    A named logger instance.

    Definition Classes
    Logger
  22. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  25. def parser: (OAuth2Info) ⇒ (JsValue) ⇒ CommonSocialProfile[OAuth2Info]

    Defines the parser which parses the most common profile supported by Silhouette.

    Defines the parser which parses the most common profile supported by Silhouette.

    returns

    The parser which parses the most common profile supported by Silhouette.

    Attributes
    protected
    Definition Classes
    FacebookProviderSocialProfileBuilder
  26. def profileAPI: String

    Gets the API URL to retrieve the profile data.

    Gets the API URL to retrieve the profile data.

    returns

    The API URL to retrieve the profile data.

    Attributes
    protected
    Definition Classes
    FacebookProviderSocialProfileBuilder
  27. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  28. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from OAuth2Provider

Inherited from Logger

Inherited from SocialProvider[OAuth2Info]

Inherited from Provider

Inherited from AnyRef

Inherited from Any

Ungrouped