janrain

Janrain's PHP-OpenID and Google/Yahoo

你。 提交于 2019-11-27 20:48:53
问题 I'm using Janrain's PHP-OpenID 2.1.3, and I've managed to get it working with all the providers I have tried except for Google and Yahoo. The major difference here seems to be that Google and Yahoo, unlike most other providers, don't use a user-specific URL, but rather have the user discovery framework all on their end - which throws the default Janrain framework for a loop then it tries to begin the auth request. From what I've seen it looks like it's probably the YADIS discovery that is

Example usage of AX in PHP OpenID

只谈情不闲聊 提交于 2019-11-27 17:08:25
I'm using JanRain's PHP OpenID library. It comes with example script which is using SReg extension. But I want it to work with Google (and it works for auth actually), but Google uses AX (attribute exchange) instead of SReg for additional data. For some reason, JanRain's library is missing AX support in example script, and code comments in AX script are out of my understanding, though comments in SReg script are clear as 1-2-3. Does anyone know how to implement AX without too much pain? Ran into the same issue. Some digging in AX.php got me a working start. Haven't looked for any bugs, nor

php-openID doesn't work with Yahoo

纵然是瞬间 提交于 2019-11-27 06:04:08
问题 i am trying to use php-openid library for implementing openID in my site. the basic consumer example inside its package doesn't work for Google and Yahoo. i found the Google solution here: Example usage of AX in PHP OpenID but it doesn't still work for Yahoo! . how can i made it works? 回答1: wow it is solved now !!!!! i traced the functions and found the problem.and that is.... in "try_auth.php" file i used "$attribute[] = Auth_OpenID_AX_AttrInfo::make('http://axschema.org/contact/email',2,1,

Example usage of AX in PHP OpenID

家住魔仙堡 提交于 2019-11-26 18:52:50
问题 I'm using JanRain's PHP OpenID library. It comes with example script which is using SReg extension. But I want it to work with Google (and it works for auth actually), but Google uses AX (attribute exchange) instead of SReg for additional data. For some reason, JanRain's library is missing AX support in example script, and code comments in AX script are out of my understanding, though comments in SReg script are clear as 1-2-3. Does anyone know how to implement AX without too much pain? 回答1: