Zend Framework
1.12
|
Public Member Functions | |
__construct (array $props=null, $policy_url=null, $version=1.0) | |
Creates SREG extension object. | |
getProperties () | |
Returns associative array of SREG variables. | |
getPolicyUrl () | |
Returns SREG policy URL. | |
getVersion () | |
Returns SREG protocol version. | |
prepareRequest (&$params) | |
Adds additional SREG data to OpenId 'checkid_immediate' or 'checkid_setup' request. | |
parseRequest ($params) | |
Parses OpenId 'checkid_immediate' or 'checkid_setup' request, extracts SREG variables and sets ovject properties to corresponding values. | |
prepareResponse (&$params) | |
Adds additional SREG data to OpenId 'id_res' response. | |
parseResponse ($params) | |
Parses OpenId 'id_res' response and sets object's properties according to 'openid.sreg. | |
getTrustData (&$data) | |
Addes SREG properties that are allowed to be send to consumer to the given $data argument. | |
checkTrustData ($data) | |
Check if given $data contains necessury SREG properties to sutisfy OpenId request. | |
![]() | |
prepareRequest (&$params) | |
Method to add additional data to OpenId 'checkid_immediate' or 'checkid_setup' request. | |
parseRequest ($params) | |
Method to parse OpenId 'checkid_immediate' or 'checkid_setup' request and initialize object with passed data. | |
prepareResponse (&$params) | |
Method to add additional data to OpenId 'id_res' response. | |
parseResponse ($params) | |
Method to parse OpenId 'id_res' response and initialize object with passed data. | |
getTrustData (&$data) | |
Method to prepare data to store it in trusted servers database. | |
checkTrustData ($data) | |
Method to check if data from trusted servers database is enough to sutisfy request. | |
Static Public Member Functions | |
static | getSregProperties () |
Returns array of allowed SREG variable names. | |
![]() | |
static | forAll ($extensions, $func, &$params) |
Calls given function with given argument for all extensions. | |
Public Attributes | |
const | NAMESPACE_1_1 = "http://openid.net/extensions/sreg/1.1" |
SREG 1.1 namespace. | |
__construct | ( | array | $props = null , |
$policy_url = null , |
|||
$version = 1.0 |
|||
) |
Creates SREG extension object.
array | $props | associative array of SREG variables |
string | $policy_url | SREG policy URL |
float | $version | SREG version |
checkTrustData | ( | $data | ) |
Check if given $data contains necessury SREG properties to sutisfy OpenId request.
On success sets SREG response properties from given $data and returns true, on failure returns false.
array | $data | data from tusted servers database |
getPolicyUrl | ( | ) |
Returns SREG policy URL.
getProperties | ( | ) |
Returns associative array of SREG variables.
|
static |
Returns array of allowed SREG variable names.
getTrustData | ( | & | $data | ) |
Addes SREG properties that are allowed to be send to consumer to the given $data argument.
array | &$data | data to be stored in tusted servers database |
getVersion | ( | ) |
Returns SREG protocol version.
parseRequest | ( | $params | ) |
Parses OpenId 'checkid_immediate' or 'checkid_setup' request, extracts SREG variables and sets ovject properties to corresponding values.
array | $params | request's var/val pairs |
parseResponse | ( | $params | ) |
Parses OpenId 'id_res' response and sets object's properties according to 'openid.sreg.
*' variables in response
array | $params | response's var/val pairs |
prepareRequest | ( | & | $params | ) |
Adds additional SREG data to OpenId 'checkid_immediate' or 'checkid_setup' request.
array | &$params | request's var/val pairs |
prepareResponse | ( | & | $params | ) |
Adds additional SREG data to OpenId 'id_res' response.
array | &$params | response's var/val pairs |
const NAMESPACE_1_1 = "http://openid.net/extensions/sreg/1.1" |
SREG 1.1 namespace.
All OpenID SREG 1.1 messages MUST contain variable openid.ns.sreg with its value.