openID with domain.mp

和自甴很熟 提交于 2019-12-08 05:19:07

问题


i developed a login form that allows the use of openID. Works fine for most users, but this user has a .mp address. The openID connection keeps on failing.

i tracked down the .mp domain to the provider http://chi.mp (yeah, i know).

I use the simpleOpenId php class to perform the connexion. It returns no error, just dies silently.

Anybody has idea on where this issue comes from?

UPDATE:

As suggested, i've set up the Janrain library at http://openidenabled.com/php-openid/ as that works with OpenID 2.x.

Alas, same goes here: login in using .. works, but .mp does not. It says "Authentication error; not a valid OpenID."

You can try it for yourself here.


回答1:


Is suspect it may be due to a differing OpenID protocol (if you can't login via OpenID using your Google Account, then this is a key sign). Try using the Janrain library at http://openidenabled.com/php-openid/ as that works with OpenID 2.x




回答2:


It looks like there is a newer version of the openid class your using. Take a look here: http://extremeswank.com/simpleopenid.html (It says version 1.2 where your link does not specify).

I tested the class you linked to and it had definite issues with any Identity url that has a "https://" prefix. It is seems to be broken for google openid and will convert "https://www.google.com/accounts/o8/id" into "http://www.google.com/accounts/o8/id" which fails. Even the version 1.2 class fails the same way.

I think i would shop around for another php openid library here: http://openid.net/developers/libraries/




回答3:


I'll post the full explanation. The bounty should be splitted to go both to Tim Santeford and Richy C. Because it's thanks to their inputs and advises that i could nail down the issue.

I have no experience with bounties so i hope i can do that, or have the moderator do that.

As for the answer:

The reason why login in with some openid would work and others not was that those not working where openid redirecting to a https url. Yet, my server had libcurl compiled with the https Protocol disabled.

Enabling it makes the openid login works seamlessly.



来源:https://stackoverflow.com/questions/1448072/openid-with-domain-mp

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!