API > eden > oauth.php
View Source

class Eden_Oauth

Oauth Factory; A summary of 2-legged and 3-legged OAuth which can generally connect to any properly implemented OAuth server.

Public Methods

public function consumer($url, $key, $secret)

Returns the oauth consumer class

Returns Eden_Oauth_Consumer

public function getHmacGetAccessToken($url, $key, $secret, $token,

Returns an access token given the requiremets GET, HMAC-SHA1

Arguments

  1. string url
  2. string cnsumer key
  3. string consumer secret
  4. string token
  5. string token secret
  6. array extra query
  7. string|null realm
  8. string|null verifier

Returns string access token

public function getHmacGetAuthorizationAccessToken($url, $key, $secret, $token,

Returns an access token given the requiremets GET, HMAC-SHA1, use Authorization Header

Arguments

  1. string url
  2. string cnsumer key
  3. string consumer secret
  4. string token
  5. string token secret
  6. array extra query
  7. string|null realm
  8. string|null verifier

Returns string access token

public function getHmacGetAuthorizationRequestToken($url, $key, $secret, array $query = array(), $realm = NULL)

Returns a request token given the requiremets GET, HMAC-SHA1, use Authorization Header

Arguments

  1. string url
  2. string cnsumer key
  3. string consumer secret
  4. array extra query
  5. string|null realm

Returns string request token

public function getHmacGetRequestToken($url, $key, $secret, array $query = array(), $realm = NULL)

Returns a request token given the requiremets GET, HMAC-SHA1

Arguments

  1. string url
  2. string cnsumer key
  3. string consumer secret
  4. array extra query
  5. string|null realm

Returns string request token

public function getHmacPostAccessToken($url, $key, $secret, $token,

Returns an access token given the requiremets POST, HMAC-SHA1

Arguments

  1. string url
  2. string cnsumer key
  3. string consumer secret
  4. string token
  5. string token secret
  6. array extra query
  7. string|null realm
  8. string|null verifier

Returns string access token

public function getHmacPostAuthorizationAccessToken($url, $key, $secret, $token,

Returns an access token given the requiremets POST, HMAC-SHA1, use Authorization Header

Arguments

  1. string url
  2. string cnsumer key
  3. string consumer secret
  4. string token
  5. string token secret
  6. array extra query
  7. string|null realm
  8. string|null verifier

Returns string access token

public function getHmacPostAuthorizationRequestToken($url, $key, $secret, array $query = array(), $realm = NULL)

Returns a request token given the requiremets POST, HMAC-SHA1, use Authorization Header

Arguments

  1. string url
  2. string cnsumer key
  3. string consumer secret
  4. array extra query
  5. string|null realm

Returns string request token

public function getHmacPostRequestToken($url, $key, $secret, array $query = array(), $realm = NULL)

Returns a request token given the requiremets POST, HMAC-SHA1

Arguments

  1. string url
  2. string cnsumer key
  3. string consumer secret
  4. array extra query
  5. string|null realm

Returns string request token

public function getPlainGetAccessToken($url, $key, $secret, $token,

Returns an access token given the requiremets GET, PLAINTEXT

Arguments

  1. string url
  2. string cnsumer key
  3. string consumer secret
  4. string token
  5. string token secret
  6. array extra query
  7. string|null realm
  8. string|null verifier

Returns string access token

public function getPlainGetAuthorizationAccessToken($url, $key, $secret, $token,

Returns an access token given the requiremets GET, PLAINTEXT, use Authorization Header

Arguments

  1. string url
  2. string cnsumer key
  3. string consumer secret
  4. string token
  5. string token secret
  6. array extra query
  7. string|null realm
  8. string|null verifier

Returns string access token

public function getPlainGetAuthorizationRequestToken($url, $key, $secret, array $query = array(), $realm = NULL)

Returns a request token given the requiremets GET, PLAINTEXT, use Authorization Header

Arguments

  1. string url
  2. string cnsumer key
  3. string consumer secret
  4. array extra query
  5. string|null realm

Returns string request token

public function getPlainGetRequestToken($url, $key, $secret, array $query = array(), $realm = NULL)

Returns a request token given the requiremets GET, PLAINTEXT

Arguments

  1. string url
  2. string cnsumer key
  3. string consumer secret
  4. array extra query
  5. string|null realm

Returns string request token

public function getPlainPostAccessToken($url, $key, $secret, $token,

Returns an access token given the requiremets POST, PLAINTEXT

Arguments

  1. string url
  2. string cnsumer key
  3. string consumer secret
  4. string token
  5. string token secret
  6. array extra query
  7. string|null realm
  8. string|null verifier

Returns string access token

public function getPlainPostAuthorizationAccessToken($url, $key, $secret, $token,

Returns an access token given the requiremets POST, PLAINTEXT, use Authorization Header

Arguments

  1. string url
  2. string cnsumer key
  3. string consumer secret
  4. string token
  5. string token secret
  6. array extra query
  7. string|null realm
  8. string|null verifier

Returns string access token

public function getPlainPostAuthorizationRequestToken($url, $key, $secret, array $query = array(), $realm = NULL)

Returns a request token given the requiremets POST, PLAINTEXT, use Authorization Header

Arguments

  1. string url
  2. string cnsumer key
  3. string consumer secret
  4. array extra query
  5. string|null realm

Returns string request token

public function getPlainPostRequestToken($url, $key, $secret, array $query = array(), $realm = NULL)

Returns a request token given the requiremets POST, PLAINTEXT

Arguments

  1. string url
  2. string cnsumer key
  3. string consumer secret
  4. array extra query
  5. string|null realm

Returns string request token

public function server()

Returns the oauth server class

Returns Eden_Oauth_Server


© 2012 Openovate Labs. All rights reserved.