com.mohiva.play.silhouette.core.providers.oauth1

TwitterProvider

abstract class TwitterProvider extends OAuth1Provider

A Twitter OAuth1 Provider.

See also

https://dev.twitter.com/docs/entities#users

https://dev.twitter.com/docs/user-profile-images-and-banners

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. TwitterProvider
  2. OAuth1Provider
  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 TwitterProvider(cacheLayer: CacheLayer, httpLayer: HTTPLayer, oAuth1Service: OAuth1Service, oAuth1Settings: OAuth1Settings)

    cacheLayer

    The cache layer implementation.

    httpLayer

    The HTTP layer implementation.

    oAuth1Service

    The OAuth1 service implementation.

    oAuth1Settings

    The OAuth1 provider settings.

Type Members

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

    The Json parser signature.

    The Json parser signature.

    Definition Classes
    SocialProfileBuilder
  2. type Parser = (OAuth1Info) ⇒ JsonParser

    The parser signature.

    The parser signature.

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

    The type of the profile.

    The type of the profile.

    Definition Classes
    SocialProfileBuilder

Abstract Value Members

  1. abstract def parseProfile(parser: JsonParser, 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: Any): Boolean

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

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

    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  5. def authenticate()(implicit request: RequestHeader): Future[Either[Result, 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
  6. def buildProfile(authInfo: OAuth1Info): 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
    TwitterProviderSocialProfileBuilder
  7. def clone(): AnyRef

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

    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
    OAuth1ProviderSocialProvider
  9. final def eq(arg0: AnyRef): Boolean

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

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

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. final def getClass(): Class[_]

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

    Definition Classes
    AnyRef → Any
  14. def id: String

    Gets the provider ID.

    Gets the provider ID.

    returns

    The provider ID.

    Definition Classes
    TwitterProviderProvider
  15. final def isInstanceOf[T0]: Boolean

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

    A named logger instance.

    A named logger instance.

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

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

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

    Definition Classes
    AnyRef
  20. def parser: Parser

    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
    TwitterProviderSocialProfileBuilder
  21. 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
    TwitterProviderSocialProfileBuilder
  22. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  23. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from OAuth1Provider

Inherited from Logger

Inherited from SocialProvider[OAuth1Info]

Inherited from Provider

Inherited from AnyRef

Inherited from Any

Ungrouped