Öffentliche Methoden | |
Auth_OpenID_PAPE_Request ($preferred_auth_policies=null, $max_auth_age=null) | |
addPolicyURI ($policy_uri) | |
getExtensionArgs () | |
fromOpenIDRequest ($request) | |
parseExtensionArgs ($args) | |
preferredTypes ($supported_types) | |
Datenfelder | |
$ns_alias = 'pape' | |
$ns_uri = Auth_OpenID_PAPE_NS_URI |
preferred_auth_policies: The authentication policies that the relying party prefers
max_auth_age: The maximum time, in seconds, that the relying party wants to allow to have elapsed before the user must re-authenticate
Definiert in Zeile 30 der Datei PAPE.php.
addPolicyURI | ( | $ | policy_uri | ) |
Add an acceptable authentication policy URI to this request
This method is intended to be used by the relying party to add acceptable authentication types to the request.
policy_uri: The identifier for the preferred type of authentication.
Definiert in Zeile 55 der Datei PAPE.php.
00057 : The identifier for the preferred type of 00058 * authentication. 00059 */ 00060 function addPolicyURI($policy_uri)
Auth_OpenID_PAPE_Request | ( | $ | preferred_auth_policies = null , |
|
$ | max_auth_age = null | |||
) |
Definiert in Zeile 35 der Datei PAPE.php.
00035 { 00036 00037 var $ns_alias = 'pape'; 00038 var $ns_uri = Auth_OpenID_PAPE_NS_URI; 00039 00040 function Auth_OpenID_PAPE_Request($preferred_auth_policies=null, 00041 $max_auth_age=null) 00042 { 00043 if ($preferred_auth_policies === null) { 00044 $preferred_auth_policies = array();
fromOpenIDRequest | ( | $ | request | ) |
Instantiate a Request object from the arguments in a checkid_* OpenID message
Definiert in Zeile 80 der Datei PAPE.php.
00086 { 00087 $obj = new Auth_OpenID_PAPE_Request(); 00088 $args = $request->message->getArgs(Auth_OpenID_PAPE_NS_URI); 00089 00090 if ($args === null || $args === array()) { 00091 return null;
getExtensionArgs | ( | ) |
Get the string arguments that should be added to an OpenID message for this extension.
Erneute Implementation von Auth_OpenID_Extension.
Definiert in Zeile 62 der Datei PAPE.php.
00062 { 00063 $this->preferred_auth_policies[] = $policy_uri; 00064 } 00065 } 00066 00067 function getExtensionArgs() 00068 { 00069 $ns_args = array( 00070 'preferred_auth_policies' => 00071 implode(' ', $this->preferred_auth_policies) 00072 ); 00073 00074 if ($this->max_auth_age !== null) {
parseExtensionArgs | ( | $ | args | ) |
Set the state of this request to be that expressed in these PAPE arguments
args,: | The PAPE arguments without a namespace |
Definiert in Zeile 99 der Datei PAPE.php.
00102 : The PAPE arguments without a namespace 00103 */ 00104 function parseExtensionArgs($args) 00105 { 00106 // preferred_auth_policies is a space-separated list of policy 00107 // URIs 00108 $this->preferred_auth_policies = array(); 00109 00110 $policies_str = Auth_OpenID::arrayGet($args, 'preferred_auth_policies'); 00111 if ($policies_str) { 00112 foreach (explode(' ', $policies_str) as $uri) { 00113 if (!in_array($uri, $this->preferred_auth_policies)) { 00114 $this->preferred_auth_policies[] = $uri; 00115 } 00116 } 00117 } 00118 00119 // max_auth_age is base-10 integer number of seconds 00120 $max_auth_age_str = Auth_OpenID::arrayGet($args, 'max_auth_age'); 00121 if ($max_auth_age_str) {
preferredTypes | ( | $ | supported_types | ) |
Given a list of authentication policy URIs that a provider supports, this method returns the subsequence of those types that are preferred by the relying party.
supported_types,: | A sequence of authentication policy type URIs that are supported by a provider |
Definiert in Zeile 137 der Datei PAPE.php.
00143 { 00144 $result = array(); 00145 00146 foreach ($supported_types as $st) { 00147 if (in_array($st, $this->preferred_auth_policies)) {
$ns_alias = 'pape' |
$ns_uri = Auth_OpenID_PAPE_NS_URI |
ns_uri: The namespace to which to add the arguments for this extension
Erneute Implementation von Auth_OpenID_Extension.
Copyright © 2003 - 2009 MyOOS [Shopsystem]. All rights reserved. MyOOS [Shopsystem] is Free Software released under the GNU/GPL License. Webmaster: info@r23.de (Impressum) |
|