php-openid
php-openid copied to clipboard
When will master branch add the function "blobDecode()" in MySQLStore.php?
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));
}
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).
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.
This repo is being archived. Closing issue.