authclient\OpenId fetchAttributes()

fetchAttributes() public method Gets AX/SREG attributes provided by OP. Should be used only after successful validation. Note that it does not guarantee that any of the required/optional parameters will be present, or that there will be no other attributes besides those specified. In other words. OP may provide whatever information it wants to. SREG names will be mapped to AX names. See also http://www.axschema.org/types/. public array fetchAttributes ( )return array Array of attributes

authclient\OpenId extractHtmlTagValue()

extractHtmlTagValue() protected method Scans content for / tags and extract information from them. protected string|boolean extractHtmlTagValue ( $content, $tag, $matchAttributeName, $matchAttributeValue, $valueAttributeName )$content string HTML content to be be parsed. $tag string Name of the source tag. $matchAttributeName string Name of the source tag attribute, which should contain $matchAttributeValue $matchAttributeValue string Required value of $matchAttributeName $valueAt

authclient\OpenId fetchSregAttributes()

fetchSregAttributes() protected method Gets SREG attributes provided by OP. SREG names will be mapped to AX names. protected array fetchSregAttributes ( )return array Array of attributes with keys being the AX schema names, e.g. 'contact/email'

authclient\OpenId compareUrl()

compareUrl() protected method Compares 2 URLs taking in account possible GET parameters order miss match and URL encoding inconsistencies. protected boolean compareUrl ( $expectedUrl, $actualUrl )$expectedUrl string Expected URL. $actualUrl string Actual URL. return boolean Whether URLs are equal.

authclient\OpenId buildUrl()

buildUrl() protected method Combines given URLs into single one. protected string buildUrl ( $baseUrl, $additionalUrl )$baseUrl string Base URL. $additionalUrl string|array Additional URL string or information array. return string Composed URL.

authclient\OpenId discover()

discover() public method Performs Yadis and HTML discovery. public array discover ( $url )$url string Identity URL. return array OpenID provider info, following keys will be available: 'url' - string OP Endpoint (i.e. OpenID provider address). 'version' - integer OpenID protocol version used by provider. 'identity' - string identity value. 'identifier_select' - boolean whether to request OP to select identity for an user in OpenID 2, does not affect OpenID 1. 'ax' - boolean whether AX

authclient\OpenId defaultReturnUrl()

defaultReturnUrl() protected method Generates default $returnUrl value. protected string defaultReturnUrl ( )return string Default authentication return URL.

authclient\OpenId buildAuthUrlV2()

buildAuthUrlV2() protected method Builds authentication URL for the protocol version 2. protected string buildAuthUrlV2 ( $serverInfo )$serverInfo array OpenID server info. return string Authentication URL.

authclient\OpenId buildAxParams()

buildAxParams() protected method Composes AX request parameters. protected array buildAxParams ( )return array AX parameters.

authclient\OpenId buildSregParams()

buildSregParams() protected method Composes SREG request parameters. protected array buildSregParams ( )return array SREG parameters.