OpenID
[ class tree: OpenID ] [ index: OpenID ] [ all elements ]

Class: OpenID_Extension_OAuth

Source Location: /OpenID-0.4.0/OpenID/Extension/OAuth.php

Class Overview

OpenID_Extension
   |
   --OpenID_Extension_OAuth

Provides support for the OAuth extension


Author(s):

Copyright:

  • 2009 Jeff Hodsdon

Variables

Methods


Inherited Variables

Inherited Methods

Class: OpenID_Extension

OpenID_Extension::__construct()
Sets the message type, request or response
OpenID_Extension::fromMessageResponse()
Extracts extension contents from an OpenID_Message
OpenID_Extension::get()
Gets a key's value
OpenID_Extension::getNamespace()
Gets the namespace of this extension
OpenID_Extension::set()
Sets a key value pair
OpenID_Extension::toMessage()
Adds the extension contents to an OpenID_Message

Class Details

[line 31]
Provides support for the OAuth extension


[ Top ]


Class Variables

$alias =  'oauth'

[line 45]

Alias to use
  • Access: protected

Type:   string
Overrides:   Array


[ Top ]

$namespace = 'http://specs.openid.net/extensions/oauth/1.0'

[line 38]

URI of the OAuth namespace
  • Access: protected

Type:   string
Overrides:   Array


[ Top ]

$requestKeys = array('consumer', 'scope')

[line 52]

Supported keys in a request
  • Access: protected

Type:   array
Overrides:   Array


[ Top ]

$responseKeys = array('request_token', 'scope')

[line 59]

Supported keys in a response
  • Access: protected

Type:   array
Overrides:   Array


[ Top ]



Method Detail

getAccessToken   [line 80]

array getAccessToken( string $consumerKey, string $consumerSecret, string $url, [array $params = array()], [string $method = 'GET'])

Fetch an OAuth access token

Requires an request_token to be present in self::$values


Parameters:

string   $consumerKey   —  OAuth consumer application key
string   $consumerSecret   —  OAuth consumer secret key
string   $url   —  Access token url
array   $params   —  Paramters to include in the request for the access token
string   $method   —  HTTP Method to use

[ Top ]


Documentation generated on Mon, 11 Mar 2019 15:57:49 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.