package oauth
- Alphabetic
- Public
- Protected
Type Members
- case class ConsumerKey(key: String, secret: String) extends Product with Serializable
A consumer key / consumer secret pair that the OAuth provider gave you, to identify your application.
- case class OAuth(info: ServiceInfo, use10a: Boolean = true) extends Product with Serializable
Library to access resources protected by OAuth 1.0a.
Library to access resources protected by OAuth 1.0a.
- 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
- class OAuthCalculator extends WSSignatureCalculator with SignatureCalculator
The public AsyncHttpClient implementation of WSSignatureCalculator.
- case class RequestToken(token: String, secret: String) extends Product with Serializable
A request token / token secret pair, to be used for a specific user.
- case class ServiceInfo(requestTokenURL: String, accessTokenURL: String, authorizationURL: String, key: ConsumerKey) extends Product with Serializable
The information identifying a oauth provider: URLs and the consumer key / consumer secret pair.
Value Members
- object OAuthCalculator
Object for creating signature calculator for the Play WS API.
Object for creating signature calculator for the Play WS API.
Example:
import play.api.libs.oauth.{ ConsumerKey, OAuthCalculator, RequestToken } import play.api.libs.ws.ahc.StandaloneAhcWSClient def example( twitterConsumerKey: String, twitterConsumerSecret: String, accessTokenKey: String, accessTokenSecret: String, ws: StandaloneAhcWSClient) = { val consumerKey: ConsumerKey = ConsumerKey(twitterConsumerKey, twitterConsumerSecret) val requestToken: RequestToken = RequestToken(accessTokenKey, accessTokenSecret) ws.url("http://example.com/protected"). sign(OAuthCalculator(consumerKey, requestToken)).get() }