Comments (6)
Finally, wrote some documentation.
http://code.google.com/p/lightopenid/wiki/Configuration
Sorry for the unusually long delay.
Original comment by [email protected]
on 14 Feb 2011 at 9:28
- Changed state: Done
- Added labels: Type-Enhancement
- Removed labels: Type-Defect
from lightopenid.
Hi mewp,
what do you think about providing a wiki-page with a possible database
implementation?
Something like this:
Title: Extend an existing MySQL-login-system with OpenID
Requirements: You already have a login-system and you store some user-data in a
MySQL Database which looks simmilar to this:
Usertable:
| id | username | password | prename | lastname ...
| unique |
Then you can create a new table which stores the OpenIDs. Keep in mind that
every user might have several openIDs, but no OpenID can belong to more than
one user:
CREATE TABLE IF NOT EXISTS `UserOpenIDs` (
`openid_url` varchar(255) NOT NULL,
`user_id` int(11) NOT NULL,
PRIMARY KEY (`openid_url`),
KEY `user_id` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
You have to provide a possibility for users to "bind" their OpenIDs to their
account and to sign in with their OpenIDs. You should also think about
redesigning your registration process.
Original comment by [email protected]
on 19 Feb 2011 at 12:24
from lightopenid.
While it's not related to the library itself, it may be useful for some people.
However, writing such tutorial is not as simple as you might think. For
example, the your approach to storing identities has a critical flaw -- URL-s
can be much longer than 255 characters. While that may not happen often and may
be a risk that you're willing to take for your own website, I can't tell people
that it's The Right Way to do it.
Also, I'd have to write something about the registration process you've
mentioned, and various other things (openid-only vs password auth + openid, for
example).
So I probably will get to it eventually, but it'll take some time.
Original comment by [email protected]
on 19 Feb 2011 at 1:03
- Changed state: Accepted
from lightopenid.
Hi mewp,
do you know this project: http://code.google.com/p/openid-selector/ ?
I think lightopenid and the openid-selector might be a good combination for
many projects. What do you think about setting a link to them? I'll propose
that the openid-selector project, too.
cheers,
Martin
Original comment by [email protected]
on 1 Mar 2011 at 9:38
from lightopenid.
Hi mewp,
on the homepage (http://code.google.com/p/lightopenid/) your wrote
"Works only as a consumer."
I think this is outdated. Now it works also as a privider, doesn't it?
Original comment by [email protected]
on 13 Mar 2011 at 9:58
from lightopenid.
I've added a link to openid-selector and updated the project summary.
Original comment by [email protected]
on 14 Mar 2011 at 8:41
from lightopenid.
Related Issues (20)
- version 0.5 example works but not version 0.6 HOT 3
- Ax/SReg Params may be unsigned
- LightOpenId constructor fails when trusted root URL is less than 8 chars
- Problem with curl request on a server
- Missing: A License File HOT 2
- add composer support HOT 1
- wrong mimetype check in openid.php ? HOT 3
- Use Steam as provider HOT 1
- #-comments HOT 6
- returning clamed_id is a wrong approach HOT 5
- magic get/set methods HOT 3
- LightOpenID magic properties do not work with Twig template engine due to lack of __isset
- New release HOT 1
- keep waiting for localhost HOT 2
- Validation fails when there are accent in the required variable HOT 2
- Yahoo OpenID not working on newer versions of PHP/cURL [patch proposed]
- The regular expressions in htmlTag parse some valid responses incorrectly
- Support for OpenID Connect? HOT 1
- How to select eid applet language ?
- Unregistered domain error HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lightopenid.