php-openid icon indicating copy to clipboard operation
php-openid copied to clipboard

When will master branch add the function "blobDecode()" in MySQLStore.php?

Open carychow opened this issue 14 years ago • 2 comments

It is very very very terrible that after I found this issue already happened when 2007! No one has fixed it until now! You always get the "Bad signature" response if you don't make this change.

Please! Adds this function for the users who using MySQL (if this project is not dead).

public function blobDecode($blob)
{
    return pack('H*', substr($blob, 2));
}

carychow avatar Aug 05 '10 03:08 carychow

Can you provide more information? Does it affect only setups missing certain PHP modules by any chance?!

I do not need this patch (see my fork).

blueyed avatar Aug 05 '10 07:08 blueyed

In Auth_OpenID_MySQLStore (OpenID/MySQLStore.php), you can find this function: function blobEncode($blob) { return "0x" . bin2hex($blob); } It is override the funtion in Auth_OpenID_SQLStore (SQLStore.php) function blobEncode($str) { return $str; } However, there are no functions override the blobDecode() in Auth_OpenID_SQLStore.

The result is, you will find that the strings of message signature which are stored before the request, and one is in response are different.

carychow avatar Aug 05 '10 10:08 carychow

This repo is being archived. Closing issue.

timcappalli avatar Jul 24 '23 18:07 timcappalli