开发者

LightOpenID - Provider - Script is stuck at "allow once","allow always","cancel"

I have the example-mysql.php LightOpenID provider script running on a localhost virtualhost on my machine. I updated the table names and mysql_connect() parameters to work on my local machine. I also created a user in the users table.

I'm 开发者_JS百科using the example.php LightOpenID consumer script to test the provider script. Everything works up until I get to "http://site1" wants access, Allow Once, Allow Always, Cancel. Pressing either of the allow buttons creates a new allowedsites row, but the page just refreshes with the buttons again. It verifies my login against the database or I would get "wrong user/pass" but never finishes the process and redirects me...

Provider script: https://gist.github.com/1072612 Consumer script: https://gist.github.com/1072613


You have probably entered a wrong identity url.

For example, assuming the provider is on provider.example.org:

An incorrect identity would be http://provider.example.org/example-mysql.php. The provider would ask you for login and password, request authorization, then silently fail, because http://provider.example.org/example-mysql.php cannot be resolved to any login.

http://provider.example.org/example-mysql.php?Mewp would be a correct identity for this example.

One way to avoid this is to set $op->select_id = true when there's no login in the url, which would cause the server to return both claimed_id and identity to the correct url (like google does).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜