Definition at line 582 of file Server.php.
◆ answer()
Auth_OpenID_AssociateRequest::answer |
( |
|
$assoc | ) |
|
Definition at line 652 of file Server.php.
References Auth_OpenID_OPENID_NS.
657 'expires_in' => sprintf(
'%d', $assoc->getExpiresIn()),
658 'assoc_type' => $this->assoc_type,
659 'assoc_handle' => $assoc->handle));
662 $this->session->answer($assoc->secret));
664 if (! ($this->session->session_type ==
'no-encryption' 665 && $this->message->isOpenID1())) {
668 $this->session->session_type);
const Auth_OpenID_OPENID_NS
◆ answerUnsupported()
Auth_OpenID_AssociateRequest::answerUnsupported |
( |
|
$text_message, |
|
|
|
$preferred_association_type = null , |
|
|
|
$preferred_session_type = null |
|
) |
| |
◆ Auth_OpenID_AssociateRequest()
Auth_OpenID_AssociateRequest::Auth_OpenID_AssociateRequest |
( |
|
$session, |
|
|
|
$assoc_type |
|
) |
| |
◆ fromMessage()
static Auth_OpenID_AssociateRequest::fromMessage |
( |
|
$message, |
|
|
|
$server = null |
|
) |
| |
|
static |
Definition at line 600 of file Server.php.
References Auth_OpenID\arrayGet(), Auth_OpenID_OPENID_NS, Auth_OpenID_ServerError\Auth_OpenID_ServerError(), and getSessionClasses().
602 if ($message->isOpenID1()) {
606 if ($session_type ==
'no-encryption') {
609 }
else if (!$session_type) {
610 $session_type =
'no-encryption';
615 if ($session_type === null) {
617 "session_type missing from request");
625 if ($session_class === null) {
627 "Unknown session type " .
631 $session = call_user_func(array($session_class,
'fromMessage'),
633 if (is_a($session,
'Auth_OpenID_ServerError')) {
638 'assoc_type',
'HMAC-SHA1');
640 if (!in_array($assoc_type, $session->allowed_assoc_types)) {
641 $fmt =
"Session type %s does not support association type %s";
643 sprintf($fmt, $session_type, $assoc_type));
647 $obj->message = $message;
648 $obj->namespace = $message->getOpenIDNamespace();
const Auth_OpenID_OPENID_NS
Auth_OpenID_AssociateRequest($session, $assoc_type)
static arrayGet($arr, $key, $fallback=null)
Convenience function for getting array values.
static getSessionClasses()
◆ getSessionClasses()
static Auth_OpenID_AssociateRequest::getSessionClasses |
( |
| ) |
|
|
static |
Definition at line 585 of file Server.php.
Referenced by fromMessage().
588 'no-encryption' =>
'Auth_OpenID_PlainTextServerSession',
589 'DH-SHA1' =>
'Auth_OpenID_DiffieHellmanSHA1ServerSession',
590 'DH-SHA256' =>
'Auth_OpenID_DiffieHellmanSHA256ServerSession');
◆ $mode
Auth_OpenID_AssociateRequest::$mode = "associate" |
The documentation for this class was generated from the following file: