PHP Class SAuth_Adapter_Mailru, sauth

http://api.mail.ru/docs/guides/oauth/sites/ http://api.mail.ru/sites/my/ http://api.mail.ru/docs/guides/restapi/
Inheritance: extends SAuth_Adapter_Abstract, implements Zend_Auth_Adapter_Interface
ファイルを表示 Open project: nnixaa/sauth

Protected Properties

Property Type Description
$_config Configuration array
$_sessionKey Session key

Public Methods

Method Description
authenticate ( ) : Zend_Auth_Result Authenticate user by mail.ru OAuth 2.0
getSign ( array $requestParams, $accessToken ) : string Return mail.ru sign
requestUserParams ( $accessToken ) : array Request user params on mail.ru using REST API http://api.mail.ru/docs/reference/rest/users-getinfo/ FIXME: Working only after auth process, because don't consider expire time

Method Details

authenticate() public method

Authenticate user by mail.ru OAuth 2.0
public authenticate ( ) : Zend_Auth_Result
return Zend_Auth_Result

getSign() public method

Return mail.ru sign
public getSign ( array $requestParams, $accessToken ) : string
$requestParams array Request parameters
return string Signature

requestUserParams() public method

Request user params on mail.ru using REST API http://api.mail.ru/docs/reference/rest/users-getinfo/ FIXME: Working only after auth process, because don't consider expire time
public requestUserParams ( $accessToken ) : array
return array User params

Property Details

$_config protected_oe property

Configuration array
protected $_config

$_sessionKey protected_oe property

Session key
protected $_sessionKey