com.mohiva.play.silhouette.impl.providers.oauth2

VKProvider

class VKProvider extends BaseVKProvider with CommonSocialProfileBuilder

The VK OAuth2 Provider.

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

Instance Constructors

  1. new VKProvider(httpLayer: HTTPLayer, stateProvider: OAuth2StateProvider, settings: OAuth2Settings)

    httpLayer

    The HTTP layer implementation.

    stateProvider

    The state provider implementation.

    settings

    The provider settings.

Type Members

  1. type A = OAuth2Info

    The type of the auth info.

    The type of the auth info.

    Definition Classes
    OAuth2ProviderSocialProvider
  2. type Content = (JsValue, OAuth2Info)

    The content type to parse a profile from.

    The content type to parse a profile from.

    Definition Classes
    BaseVKProviderSocialProfileBuilder
  3. type Profile = CommonSocialProfile

    The type of the profile a profile builder is responsible for.

    The type of the profile a profile builder is responsible for.

    Definition Classes
    CommonSocialProfileBuilder
  4. type Self = VKProvider

    The type of this class.

    The type of this class.

    Definition Classes
    VKProviderSocialProvider
  5. type Settings = OAuth2Settings

    The settings type.

    The settings type.

    Definition Classes
    OAuth2ProviderSocialProvider

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[B]()(implicit request: ExtractableRequest[B]): Future[Either[Result, OAuth2Info]]

    Starts the authentication process.

    Starts the authentication process.

    B

    The type of the request body.

    request

    The current request.

    returns

    Either a Result or the auth info from the provider.

    Definition Classes
    OAuth2ProviderSocialProvider
  8. def buildInfo(response: WSResponse): Try[OAuth2Info]

    Builds the OAuth2 info from response.

    Builds the OAuth2 info from response.

    VK provider needs it own Json reads to extract the email from response.

    response

    The response from the provider.

    returns

    The OAuth2 info on success, otherwise a failure.

    Attributes
    protected
    Definition Classes
    BaseVKProviderOAuth2Provider
  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
    BaseVKProviderSocialProfileBuilder
  10. def clone(): AnyRef

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

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

    Definition Classes
    AnyRef → Any
  13. implicit val executionContext: ExecutionContext

    The execution context to handle the asynchronous operations.

    The execution context to handle the asynchronous operations.

    Definition Classes
    SocialProviderExecutionContextProvider
  14. def finalize(): Unit

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

    Gets the access token.

    Gets the access token.

    code

    The access code.

    request

    The current request.

    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. val httpLayer: HTTPLayer

    The HTTP layer implementation.

    The HTTP layer implementation.

    Attributes
    protected
    Definition Classes
    VKProviderSocialProvider
  20. val id: String

    The provider ID.

    The provider ID.

    returns

    The provider ID.

    Definition Classes
    BaseVKProviderProvider
  21. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  22. val logger: Logger

    A named logger instance.

    A named logger instance.

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

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

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

    Definition Classes
    AnyRef
  26. val profileParser: VKProfileParser

    The profile parser implementation.

    The profile parser implementation.

    returns

    The profile parser implementation.

    Definition Classes
    VKProviderSocialProfileBuilder
  27. def resolveCallbackURL(url: String)(implicit request: RequestHeader): String

    Resolves the url to be absolute relative to the request.

    Resolves the url to be absolute relative to the request.

    This will pass the url through if its already absolute.

    url

    The url to resolve.

    request

    The current request.

    returns

    The absolute url.

    Attributes
    protected
    Definition Classes
    SocialProvider
  28. def retrieveProfile(authInfo: A): Future[Profile]

    Retrieves the user profile for the given auth info.

    Retrieves the user profile for the given auth info.

    This method can be used to retrieve the profile information for an already authenticated identity.

    authInfo

    The auth info for which the profile information should be retrieved.

    returns

    The profile information for the given auth info.

    Definition Classes
    SocialProvider
  29. val settings: OAuth2Settings

    The provider settings.

    The provider settings.

    Definition Classes
    VKProviderSocialProvider
  30. val stateProvider: OAuth2StateProvider

    The state provider implementation.

    The state provider implementation.

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

    Definition Classes
    AnyRef
  32. def toString(): String

    Definition Classes
    AnyRef → Any
  33. val urls: Map[String, String]

    Defines the URLs that are needed to retrieve the profile data.

    Defines the URLs that are needed to retrieve the profile data.

    returns

    The URLs that are needed to retrieve the profile data.

    Attributes
    protected
    Definition Classes
    BaseVKProviderSocialProfileBuilder
  34. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  37. def withSettings(f: (Settings) ⇒ Settings): VKProvider

    Gets a provider initialized with a new settings object.

    Gets a provider initialized with a new settings object.

    f

    A function which gets the settings passed and returns different settings.

    returns

    An instance of the provider initialized with new settings.

    Definition Classes
    VKProviderSocialProvider

Inherited from BaseVKProvider

Inherited from OAuth2Provider

Inherited from Logger

Inherited from SocialProvider

Inherited from ExecutionContextProvider

Inherited from SocialProfileBuilder

Inherited from Provider

Inherited from AnyRef

Inherited from Any

Ungrouped