function _checkAuth($url, $body)
{
$query_data = Auth_OpenID_parse($body);
$expected = array('openid.mode' => 'check_authentication', 'openid.signed' => 'assoc_handle,sig,signed', 'openid.sig' => 'fake', 'openid.assoc_handle' => $this->assoc_handle);
if ($query_data == $expected) {
return new Auth_Yadis_HTTPResponse($url, 200, array(), "is_valid:true\n");
} else {
return new Auth_Yadis_HTTPResponse($url, 400, array(), "error:bad check_authentication query\n");
}
}