Öffentliche Methoden | |
Auth_OpenID_PAPE_Response ($auth_policies=null, $auth_time=null, $nist_auth_level=null) | |
addPolicyURI ($policy_uri) | |
fromSuccessResponse ($success_response) | |
parseExtensionArgs ($args, $strict=false) | |
getExtensionArgs () | |
Datenfelder | |
$ns_alias = 'pape' | |
$ns_uri = Auth_OpenID_PAPE_NS_URI |
Definiert in Zeile 154 der Datei PAPE.php.
addPolicyURI | ( | $ | policy_uri | ) |
Add a authentication policy to this response
This method is intended to be used by the provider to add a policy that the provider conformed to when authenticating the user.
policy_uri,: | The identifier for the preferred type of authentication. |
Definiert in Zeile 182 der Datei PAPE.php.
00184 : The identifier for the preferred type of 00185 * authentication. 00186 */ 00187 function addPolicyURI($policy_uri)
Auth_OpenID_PAPE_Response | ( | $ | auth_policies = null , |
|
$ | auth_time = null , |
|||
$ | nist_auth_level = null | |||
) |
Definiert in Zeile 159 der Datei PAPE.php.
00159 { 00160 00161 var $ns_alias = 'pape'; 00162 var $ns_uri = Auth_OpenID_PAPE_NS_URI; 00163 00164 function Auth_OpenID_PAPE_Response($auth_policies=null, $auth_time=null, 00165 $nist_auth_level=null) 00166 { 00167 if ($auth_policies) { 00168 $this->auth_policies = $auth_policies; 00169 } else { 00170 $this->auth_policies = array();
fromSuccessResponse | ( | $ | success_response | ) |
Create an Auth_OpenID_PAPE_Response object from a successful OpenID library response.
success_response | $success_response A SuccessResponse from Auth_OpenID_Consumer::complete() |
Definiert in Zeile 199 der Datei PAPE.php.
00201 : A provider authentication policy response from the 00202 * data that was supplied with the id_res response. 00203 */ 00204 function fromSuccessResponse($success_response) 00205 { 00206 $obj = new Auth_OpenID_PAPE_Response(); 00207 00208 // PAPE requires that the args be signed. 00209 $args = $success_response->getSignedNS(Auth_OpenID_PAPE_NS_URI); 00210 00211 if ($args === null || $args === array()) { 00212 return null; 00213 } 00214 00215 $result = $obj->parseExtensionArgs($args); 00216 00217 if ($result === false) {
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 268 der Datei PAPE.php.
00274 { 00275 $ns_args = array(); 00276 if (count($this->auth_policies) > 0) { 00277 $ns_args['auth_policies'] = implode(' ', $this->auth_policies); 00278 } else { 00279 $ns_args['auth_policies'] = 'none'; 00280 } 00281 00282 if ($this->nist_auth_level !== null) { 00283 if (!in_array($this->nist_auth_level, range(0, 4), true)) { 00284 return false; 00285 } 00286 $ns_args['nist_auth_level'] = strval($this->nist_auth_level); 00287 } 00288 00289 if ($this->auth_time !== null) { 00290 if (!ereg(PAPE_TIME_VALIDATOR, $this->auth_time)) { 00291 return false; 00292 } 00293
parseExtensionArgs | ( | $ | args, | |
$ | strict = false | |||
) |
Parse the provider authentication policy arguments into the internal state of this object
args,: | unqualified provider authentication policy arguments | |
strict,: | Whether to return false when bad data is encountered |
Definiert in Zeile 232 der Datei PAPE.php.
00238 { 00239 $policies_str = Auth_OpenID::arrayGet($args, 'auth_policies'); 00240 if ($policies_str && $policies_str != "none") { 00241 $this->auth_policies = explode(" ", $policies_str); 00242 } 00243 00244 $nist_level_str = Auth_OpenID::arrayGet($args, 'nist_auth_level'); 00245 if ($nist_level_str !== null) { 00246 $nist_level = Auth_OpenID::intval($nist_level_str); 00247 00248 if ($nist_level === false) { 00249 if ($strict) { 00250 return false; 00251 } else { 00252 $nist_level = null; 00253 } 00254 } 00255 00256 if (0 <= $nist_level && $nist_level < 5) { 00257 $this->nist_auth_level = $nist_level; 00258 } else if ($strict) { 00259 return false; 00260 } 00261 } 00262 00263 $auth_time = Auth_OpenID::arrayGet($args, 'auth_time'); 00264 if ($auth_time !== null) { 00265 if (ereg(PAPE_TIME_VALIDATOR, $auth_time)) { 00266 $this->auth_time = $auth_time;
$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) |
|