ILIAS  release_4-3 Revision
 All Data Structures Namespaces Files Functions Variables Groups Pages
Auth_OpenID_SuccessResponse Class Reference
+ Inheritance diagram for Auth_OpenID_SuccessResponse:
+ Collaboration diagram for Auth_OpenID_SuccessResponse:

Public Member Functions

 Auth_OpenID_SuccessResponse ($endpoint, $message, $signed_args=null)
 private
 extensionResponse ($namespace_uri, $require_signed)
 Extract signed extension data from the server's response.
 isOpenID1 ()
 isSigned ($ns_uri, $ns_key)
 getSigned ($ns_uri, $ns_key, $default=null)
 getSignedNS ($ns_uri)
 getReturnTo ()
 Get the openid.return_to argument from this response.
- Public Member Functions inherited from Auth_OpenID_ConsumerResponse
 setEndpoint ($endpoint)
 getDisplayIdentifier ()
 Return the display identifier for this response.

Data Fields

 $status = Auth_OpenID_SUCCESS
- Data Fields inherited from Auth_OpenID_ConsumerResponse
 $status = null

Detailed Description

Definition at line 2024 of file Consumer.php.

Member Function Documentation

Auth_OpenID_SuccessResponse::Auth_OpenID_SuccessResponse (   $endpoint,
  $message,
  $signed_args = null 
)

private

Definition at line 2030 of file Consumer.php.

{
$this->endpoint = $endpoint;
$this->identity_url = $endpoint->claimed_id;
$this->signed_args = $signed_args;
$this->message = $message;
if ($this->signed_args === null) {
$this->signed_args = array();
}
}
Auth_OpenID_SuccessResponse::extensionResponse (   $namespace_uri,
  $require_signed 
)

Extract signed extension data from the server's response.

Parameters
string$prefixThe extension namespace from which to extract the extension data.

Definition at line 2048 of file Consumer.php.

References getSignedNS().

{
if ($require_signed) {
return $this->getSignedNS($namespace_uri);
} else {
return $this->message->getArgs($namespace_uri);
}
}

+ Here is the call graph for this function:

Auth_OpenID_SuccessResponse::getReturnTo ( )

Get the openid.return_to argument from this response.

This is useful for verifying that this request was initiated by this consumer.

Returns
string $return_to The return_to URL supplied to the server on the initial request, or null if the response did not contain an 'openid.return_to' argument.

Definition at line 2109 of file Consumer.php.

References Auth_OpenID_OPENID_NS, and getSigned().

{
return $this->getSigned(Auth_OpenID_OPENID_NS, 'return_to');
}

+ Here is the call graph for this function:

Auth_OpenID_SuccessResponse::getSigned (   $ns_uri,
  $ns_key,
  $default = null 
)

Definition at line 2070 of file Consumer.php.

References isSigned().

Referenced by getReturnTo().

{
// Return the specified signed field if available, otherwise
// return default
if ($this->isSigned($ns_uri, $ns_key)) {
return $this->message->getArg($ns_uri, $ns_key, $default);
} else {
return $default;
}
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Auth_OpenID_SuccessResponse::getSignedNS (   $ns_uri)

Definition at line 2081 of file Consumer.php.

References Auth_OpenID\isFailure(), and isSigned().

Referenced by extensionResponse().

{
$args = array();
$msg_args = $this->message->getArgs($ns_uri);
if (Auth_OpenID::isFailure($msg_args)) {
return null;
}
foreach ($msg_args as $key => $value) {
if (!$this->isSigned($ns_uri, $key)) {
unset($msg_args[$key]);
}
}
return $msg_args;
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Auth_OpenID_SuccessResponse::isOpenID1 ( )

Definition at line 2057 of file Consumer.php.

{
return $this->message->isOpenID1();
}
Auth_OpenID_SuccessResponse::isSigned (   $ns_uri,
  $ns_key 
)

Definition at line 2062 of file Consumer.php.

Referenced by getSigned(), and getSignedNS().

{
// Return whether a particular key is signed, regardless of
// its namespace alias
return in_array($this->message->getKey($ns_uri, $ns_key),
$this->signed_args);
}

+ Here is the caller graph for this function:

Field Documentation

Auth_OpenID_SuccessResponse::$status = Auth_OpenID_SUCCESS

Definition at line 2025 of file Consumer.php.


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