function _requestAssociation($endpoint, $assoc_type, $session_type)
{
list($assoc_session, $args) = $this->_createAssociateRequest($endpoint, $assoc_type, $session_type);
$response_message = $this->_makeKVPost($args, $endpoint->server_url);
if ($response_message === null) {
// oidutil.log('openid.associate request failed: %s' % (why[0],))
return null;
} else {
if (is_a($response_message, 'Auth_OpenID_ServerErrorContainer')) {
return $response_message;
}
}
return $this->_extractAssociation($response_message, $assoc_session);
}