OAuth

play.api.libs.oauth.OAuth
case class OAuth(info: ServiceInfo, use10a: Boolean)

Library to access resources protected by OAuth 1.0a.

Value parameters

info

the service information, including the required URLs and the application id and secret

use10a

whether the service should use the 1.0 version of the spec, or the 1.0a version fixing a security issue. You must use the version corresponding to the

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def redirectUrl(token: String): String

The URL where the user needs to be redirected to grant authorization to your application.

The URL where the user needs to be redirected to grant authorization to your application.

Value parameters

token

request token

Attributes

def retrieveAccessToken(token: RequestToken, verifier: String): Either[OAuthException, RequestToken]

Exchange a request token for an access token.

Exchange a request token for an access token.

Value parameters

token

the token/secret pair obtained from a previous call

verifier

a string you got through your user, with redirection

Attributes

Returns

A Right(RequestToken) in case of success, Left(OAuthException) otherwise

def retrieveRequestToken(callbackURL: String): Either[OAuthException, RequestToken]

Request the request token and secret.

Request the request token and secret.

Value parameters

callbackURL

the URL where the provider should redirect to (usually a URL on the current app)

Attributes

Returns

A Right(RequestToken) in case of success, Left(OAuthException) otherwise

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product