Log-in the user with LightOpenID

后端 未结 4 901
悲&欢浪女
悲&欢浪女 2020-12-05 01:25

Hello
I have downloaded LightOpenID (http://gitorious.org/lightopenid) few hours ago but still can\'t figure out how to make it work.
I got this google example saved

4条回答
  •  没有蜡笔的小新
    2020-12-05 02:11

    This script is now working fine from my localhost running apache on my laptop with a wifi connection to the internet.

    I've been told that you should pass your domain to the new LightOpenId object when creating it.

    $iniConfig is a parse_ini_file array stored outside the document root where I store all my important variables.

    in this case

    [openid] 
    domain='mydomain.com' 
    

    So, I create new object and include the domain the server is on:

    $openid = new LightOpenID($iniConfig['openid']['domain']);
    

    I wrote it this way, and haven't checked to see if it works without the domain..

提交回复
热议问题