Questions tagged [lightopenid]

LightOpenID is a lightweight OpenID library written in PHP. It already implements a functional consumer and a provider is under development.

LightOpenID is an open source software project written in PHP 5 for implementing the consumer part of OpenID.

It offers a some documentation about:

Features:

  • Easy to use (you can code a functional client in less than ten lines of code)
  • Uses cURL if avaiable, PHP streams otherwise
  • Supports both OpenID 1.1 and 2.0
  • Supports Yadis discovery
  • Supports only stateless/dumb protocol

Requirements:

  • PHP 5 or later
  • 29.5 KB for the library
103 questions
4
votes
2 answers

No OpenID Server found at https://www.google.com/accounts/o8/id

Interesting enough I am using the same .php scripts on two different servers (a.com, b.com) with different results, I guess those have different configurations. While on a.com I am able to go through SSO process nicely, the b.com throws "No OpenID…
Yoz
  • 707
  • 6
  • 20
3
votes
2 answers

Last step of OpenID verification, always returned "is_valid:false"

Problem I'm trying to get LightOpenID to work with a Google Apps Enterprise account. I was getting "No servers found!" when I called validate(). I mocked up a quick page to test each step of LightOpenID and I've gotten a little farther, now…
Eric B.
  • 241
  • 1
  • 6
3
votes
1 answer

What should I set REALM to, using LightOpenID, for Google url's to remain consistent, for storage in my database?

Recently, I noticed that when storing the resulting identity in my database, Google would sometimes return a different identity for the same user, resulting in two database entries for a single user. After a little research, I figured out that…
Dalal
  • 1,096
  • 2
  • 17
  • 38
3
votes
2 answers

LightOpenID authentication using POST method

Is there a way to authenticate using LightOpenID library using POST method? To be exact, after authenticating, Google (for example) returns to specified URL but all data is sent to me using GET method, which ends up in ugly and long URL. My code…
MeanEYE
  • 967
  • 8
  • 24
3
votes
1 answer

Is it safe to expose OpenID links to other users?

I recently implemented OpenID for a game I'm making (Google only at this time), and I'm using lightopenid. I'm asking for minimal information back from the user (on purpose), and when they successfully authenticate, I'm passed back a long URL that…
snollygolly
  • 1,858
  • 2
  • 17
  • 31
3
votes
2 answers

OpenID get data after login

I'm using OpenID library LightOpenID to get users to login in to their favourite provider and pass on some information to my system. With LightOpenID this looks something like: $openid = new LightOpenID('localhost'); if(!$openid->mode) { …
Christian
  • 27,509
  • 17
  • 111
  • 155
3
votes
2 answers

Google suddenly started to return validation as false using LightOpenId

Using LightOpenID library, I managed to successfully implement OpenID in my website. However, a few days ago, it simply stopped to work when using Google as provider (it runs fine using Yahoo!). Since the day I implemented OpenID, it runned fine…
Edgard
  • 33
  • 2
3
votes
1 answer

Janrain OpenId vs lightopenid PHP libraries

What are the differences between the PHP implementation of Janrain's PHP OpenID library and the LightOpenID. Is one more secure than the other? According to Google's best practices page: A correct OpenID implementation has to: cover checking of…
icc97
  • 11,395
  • 8
  • 76
  • 90
2
votes
1 answer

LightOpenID unable to validate MyOpenID

For some reason LightOpenID fails to validate my MyOpenID account. I've tested the example.php that comes along with the library and it works with my Google account just fine, but with MyOpenID it's always say that the authentication is invalid. I…
tamir
  • 3,207
  • 2
  • 33
  • 51
2
votes
2 answers

what is call to function $openid->validate do?

I m trying to use openid as my login system. For that I used following code identity =…
user392406
  • 1,323
  • 5
  • 28
  • 53
2
votes
1 answer

Retaining login info using lightopenid / logging out

Using the example code provided I've made it possible to log in to my app using my Google account via lightopenid. I have stored the identity in a cookie so that my login can persist across the session. How do I then revalidate this ID to keep them…
MikkyX
  • 303
  • 3
  • 15
2
votes
1 answer

database scheme or strategy for openid

what would be the best strategy to store information about the users openid. The user must also be able to use different openids, but they have to be linked to the same profile. In other words, sort of the same what Stack Overflow does. What should…
Richard
  • 4,516
  • 11
  • 60
  • 87
2
votes
1 answer

Unable to retrieve yahoo email using lightopenid

I am trying to incorporate openid authentication using LightOpenID. i modified the discovery url in example-google.php for integrating with yahoo! but i am not getting any attributes (i am at least able to fetch the email id with…
ziro
  • 21
  • 1
2
votes
2 answers

simple openID in php

I'm using LightOpenID, and whilst it's very light, it's not very easy to understand, and it doesn't have a wiki... The example file they do give is below (sorry for the elongated post), what I don't understand is why does it instantiate the…
john mossel
  • 2,158
  • 5
  • 24
  • 39
2
votes
1 answer

How do I identify an OpenID provider as requiring Directed Identity?

I am trying to extend the LightOpenID PHP library to "discover" that an identity provider requires Directed Identity. This should be easy as the library is beautifully well written and wonderfully clean but I don't know how to identify these types…
Skrat
  • 577
  • 2
  • 15