Index: openid_provider.inc =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/openid_provider/openid_provider.inc,v retrieving revision 1.3.2.6 diff -u -p -r1.3.2.6 openid_provider.inc --- openid_provider.inc 11 Mar 2009 18:15:02 -0000 1.3.2.6 +++ openid_provider.inc 30 Jun 2009 09:29:20 -0000 @@ -163,7 +163,22 @@ function openid_provider_authentication_ } } - +/** + * Sends an unsolicited positive assertion to the relying party. + * + * @param $response + * Response data + * @param $url + * The URL where the assertion should be sent + */ +function openid_provider_unsolicited_assertion($response, $url) { + $response = _openid_provider_sign($response); + $result = drupal_http_request($url, array(), 'GET', $response); + if ($result->code == 404) { + return FALSE; + } + return TRUE; +} function openid_provider_dh_assoc($request, $secret, $algo = 'sha1') { if (empty($request['openid.dh_consumer_public'])) {