lightopenid

LightOpenID forbidden when redirecting back

心已入冬 提交于 2019-12-02 07:40:56
问题 I'm trying to use lightOpenID, which should be simple and a case of uploading the files then testing it works. When I use the example-google.php I get click the login button, the first time it asked me to login to Google and allow/remember the site I'm building. Then it redirects back to example-google.php?login and a load of attributes. But that page says "Forbidden. You don't have permission to access path/to/folder/example-google.php on this server." if I delete the attributes including

LightOpenID forbidden when redirecting back

ぃ、小莉子 提交于 2019-12-02 07:18:12
I'm trying to use lightOpenID, which should be simple and a case of uploading the files then testing it works. When I use the example-google.php I get click the login button, the first time it asked me to login to Google and allow/remember the site I'm building. Then it redirects back to example-google.php?login and a load of attributes. But that page says "Forbidden. You don't have permission to access path/to/folder/example-google.php on this server." if I delete the attributes including ?login in the url, then I get the "Login with Google button" so clearly I do have file permissions

Log-in/log-out user status with LightOpenID

*爱你&永不变心* 提交于 2019-12-01 01:36:47
I m trying to use LightOpenId for my site to log-in/log-out users. This works fine but my question is "How can I track user log-in/log-out status and take respective actions". I want user to access my site functionality only when they are logged-in and redirect to login page when user is logged-out. Thanks in advance. Your question has actually nothing to do with OpenID. OpenID is an authentication protocol, meaning that it only checks whether the user really is who he claims to be -- in the same sense that asking for a password checks that. It has nothing do to with your user being logged in

Log-in/log-out user status with LightOpenID

纵然是瞬间 提交于 2019-11-30 20:27:32
问题 I m trying to use LightOpenId for my site to log-in/log-out users. This works fine but my question is "How can I track user log-in/log-out status and take respective actions". I want user to access my site functionality only when they are logged-in and redirect to login page when user is logged-out. Thanks in advance. 回答1: Your question has actually nothing to do with OpenID. OpenID is an authentication protocol, meaning that it only checks whether the user really is who he claims to be -- in

OpenId support for Yii

故事扮演 提交于 2019-11-28 16:20:13
问题 I want to play with OpenID support in Yii. After researching for possible plugins, I found these two. One for OpenidSelector and one for LightOpenId http://www.yiiframework.com/extension/simpleopenidselector/ http://www.yiiframework.com/extension/loid Are these the right extensions to use in Yii for OpenId support? Anything else? And I would like to get some guide line on what to do with these extensions if they are correct. This is what I think I need to do beside installing them as per

How to fetch account data from a provider with LightOpenID?

眉间皱痕 提交于 2019-11-27 23:58:53
I'm having problems with a small OpenID-library called LightOpenID . I can authenticate to almost all providers, but I don't know how to fetch the data from the provider. I only get Array(), even with print_r(). You need to call getAttributes() after $openid->validate() not before. Remember: Note that it does not guarantee that any of the required/optional parameters will be present This is how I use it. This is the file openid.php in the folder lightopenid. In the class make the following additional functions - class LightOpenID { public $returnUrl , $required = array() , $optional = array()

Log-in the user with LightOpenID

对着背影说爱祢 提交于 2019-11-27 18:53:06
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 in test.php file <?php require '../lib/init.php'; require '../lib/openID/openid.php'; try { if(!isset($_GET['openid_mode'])) { if(isset($_GET['login'])) { $openid = new LightOpenID; $openid->identity = 'https://www.google.com/accounts/o8/id'; header('Location: ' . $openid->authUrl()); } ?> <form action="?login" method="post"> <button>Login with Google</button> </form> <?php } elseif($_GET['openid_mode'] == 'cancel') { echo 'User

How to fetch account data from a provider with LightOpenID?

偶尔善良 提交于 2019-11-26 23:22:16
问题 I'm having problems with a small OpenID-library called LightOpenID . I can authenticate to almost all providers, but I don't know how to fetch the data from the provider. I only get Array(), even with print_r(). 回答1: You need to call getAttributes() after $openid->validate() not before. Remember: Note that it does not guarantee that any of the required/optional parameters will be present 回答2: This is how I use it. This is the file openid.php in the folder lightopenid. In the class make the

Log-in the user with LightOpenID

我与影子孤独终老i 提交于 2019-11-26 19:38:36
问题 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 in test.php file <?php require '../lib/init.php'; require '../lib/openID/openid.php'; try { if(!isset($_GET['openid_mode'])) { if(isset($_GET['login'])) { $openid = new LightOpenID; $openid->identity = 'https://www.google.com/accounts/o8/id'; header('Location: ' . $openid->authUrl()); } ?> <form action="?login" method="post">