ILIAS  Release_5_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
Auth_OpenID_CheckAuthRequest Class Reference
+ Inheritance diagram for Auth_OpenID_CheckAuthRequest:
+ Collaboration diagram for Auth_OpenID_CheckAuthRequest:

Public Member Functions

 Auth_OpenID_CheckAuthRequest ($assoc_handle, $signed, $invalidate_handle=null)
 answer ($signatory)

Static Public Member Functions

static fromMessage ($message, $server=null)

Data Fields

 $mode = "check_authentication"
 $invalidate_handle = null
- Data Fields inherited from Auth_OpenID_Request
 $mode = null

Detailed Description

Definition at line 352 of file Server.php.

Member Function Documentation

Auth_OpenID_CheckAuthRequest::answer (   $signatory)

Definition at line 399 of file Server.php.

References Auth_OpenID_OPENID_NS.

{
$is_valid = $signatory->verify($this->assoc_handle, $this->signed);
// Now invalidate that assoc_handle so it this checkAuth
// message cannot be replayed.
$signatory->invalidate($this->assoc_handle, true);
$response = new Auth_OpenID_ServerResponse($this);
$response->fields->setArg(Auth_OpenID_OPENID_NS,
'is_valid',
($is_valid ? "true" : "false"));
if ($this->invalidate_handle) {
$assoc = $signatory->getAssociation($this->invalidate_handle,
false);
if (!$assoc) {
$response->fields->setArg(Auth_OpenID_OPENID_NS,
'invalidate_handle',
$this->invalidate_handle);
}
}
return $response;
}
Auth_OpenID_CheckAuthRequest::Auth_OpenID_CheckAuthRequest (   $assoc_handle,
  $signed,
  $invalidate_handle = null 
)

Definition at line 356 of file Server.php.

References $invalidate_handle, and Auth_OpenID_OPENID2_NS.

Referenced by fromMessage().

{
$this->assoc_handle = $assoc_handle;
$this->signed = $signed;
if ($invalidate_handle !== null) {
$this->invalidate_handle = $invalidate_handle;
}
$this->namespace = Auth_OpenID_OPENID2_NS;
$this->message = null;
}

+ Here is the caller graph for this function:

static Auth_OpenID_CheckAuthRequest::fromMessage (   $message,
  $server = null 
)
static

Definition at line 368 of file Server.php.

References $result, Auth_OpenID_CheckAuthRequest(), and Auth_OpenID_OPENID_NS.

{
$required_keys = array('assoc_handle', 'sig', 'signed');
foreach ($required_keys as $k) {
if (!$message->getArg(Auth_OpenID_OPENID_NS, $k)) {
return new Auth_OpenID_ServerError($message,
sprintf("%s request missing required parameter %s from \
query", "check_authentication", $k));
}
}
$assoc_handle = $message->getArg(Auth_OpenID_OPENID_NS, 'assoc_handle');
$sig = $message->getArg(Auth_OpenID_OPENID_NS, 'sig');
$signed_list = $message->getArg(Auth_OpenID_OPENID_NS, 'signed');
$signed_list = explode(",", $signed_list);
$signed = $message;
if ($signed->hasKey(Auth_OpenID_OPENID_NS, 'mode')) {
$signed->setArg(Auth_OpenID_OPENID_NS, 'mode', 'id_res');
}
$result = new Auth_OpenID_CheckAuthRequest($assoc_handle, $signed);
$result->message = $message;
$result->sig = $sig;
$result->invalidate_handle = $message->getArg(Auth_OpenID_OPENID_NS,
'invalidate_handle');
return $result;
}

+ Here is the call graph for this function:

Field Documentation

Auth_OpenID_CheckAuthRequest::$invalidate_handle = null

Definition at line 354 of file Server.php.

Referenced by Auth_OpenID_CheckAuthRequest().

Auth_OpenID_CheckAuthRequest::$mode = "check_authentication"

Definition at line 353 of file Server.php.


The documentation for this class was generated from the following file: