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

LinkedInProvider

abstract class LinkedInProvider extends OAuth2Provider

A LinkedIn OAuth2 Provider.

See also

https://developer.linkedin.com/documents/inapiprofile

https://developer.linkedin.com/documents/authentication

https://developer.linkedin.com/documents/oauth-10a

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. LinkedInProvider
  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 LinkedInProvider(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) ⇒ JsonParser

    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: 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 buildInfo(response: WSResponse): Try[OAuth2Info]

    Builds the OAuth2 info.

    Builds the OAuth2 info.

    response

    The response from the provider.

    returns

    The OAuth2 info on success, otherwise an failure.

    Attributes
    protected
    Definition Classes
    OAuth2Provider
  7. 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
    LinkedInProviderSocialProfileBuilder
  8. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. def doAuth()(implicit request: RequestHeader): Future[Either[Result, 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
  10. final def eq(arg0: AnyRef): Boolean

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

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

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. 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
  14. final def getClass(): Class[_]

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

    Definition Classes
    AnyRef → Any
  16. 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
  17. def id: String

    Gets the provider ID.

    Gets the provider ID.

    returns

    The provider ID.

    Definition Classes
    LinkedInProviderProvider
  18. final def isInstanceOf[T0]: Boolean

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

    A named logger instance.

    A named logger instance.

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

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

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

    Definition Classes
    AnyRef
  23. 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
    LinkedInProviderSocialProfileBuilder
  24. 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
    LinkedInProviderSocialProfileBuilder
  25. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  26. def toString(): String

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. 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