Package

play.api.libs

oauth

Permalink

package oauth

OAuth integration helpers.

Source
package.scala
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. oauth
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Type Members

  1. case class ConsumerKey(key: String, secret: String) extends Product with Serializable

    Permalink

    A consumer key / consumer secret pair that the OAuth provider gave you, to identify your application.

  2. case class OAuth(info: ServiceInfo, use10a: Boolean = true) extends Product with Serializable

    Permalink

    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

  3. class OAuthCalculator extends WSSignatureCalculator with SignatureCalculator

    Permalink

    The public AsyncHttpClient implementation of WSSignatureCalculator.

  4. case class RequestToken(token: String, secret: String) extends Product with Serializable

    Permalink

    A request token / token secret pair, to be used for a specific user.

  5. case class ServiceInfo(requestTokenURL: String, accessTokenURL: String, authorizationURL: String, key: ConsumerKey) extends Product with Serializable

    Permalink

    The information identifying a oauth provider: URLs and the consumer key / consumer secret pair.

Value Members

  1. object OAuthCalculator

    Permalink

    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._
    val consumerKey: ConsumerKey = ConsumerKey(twitterConsumerKey, twitterConsumerSecret)
    val requestToken: RequestToken = RequestToken(accessTokenKey, accessTokenSecret)
    WS.url("http://example.com/protected").sign(OAuthCalculator(consumerKey, requestToken)).get()

Inherited from AnyRef

Inherited from Any

Ungrouped