Total servers: 2
US nonstop + voting
Modern Warfare1.0 – 20lt
IP: 69.12.73.163
Game Mode: Death Match
Lives: 0
Max Kills: 15
Version: OpenLieroX 0.58 rc5
Players:
DE nonstop + voting
Liero v1.0 – 100lt
IP: 144.76.67.162
Game Mode: Death Match
Lives: 0
Max Kills: 15
Version: OpenLieroX 0.58 rc5
Players:
Pages: [1]   Go Down

Author Topic: LXA as an OpenID provider  (Read 13875 times)

albert

LXA as an OpenID provider
« on: July 14, 2010, 07:01:21 am »
OpenID is a way to login on many websites. You probably have seen it already somewhere.

OpenID itself is just the system. Famous examples of OpenID providers are Google, Yahoo and many more. And now also LXA. This means, on any other website with supports OpenID logins, you can use your LXA account now. Just use http://www.openlierox.net/openid/ .

I tried to demonstrate this here for SourceForge:
<a href="http://www.youtube.com/watch?v=FH-SOmvI588" target="_blank">http://www.youtube.com/watch?v=FH-SOmvI588</a>

Sorry, the video is a bit fast. What it shows is basically:
- I logged out of LXA (and am already logged out of SF).
- I go to the SF login page, select custom OpenID login, and enter the OpenID URL http://www.openlierox.net/openid/ .
- That brings me to the LXA login.
- After entering that one (well, just press enter as it remembered my values), it returns to SF and says I am logged in to SF now.
- I go back to LXA. SF didn't just checked the LXA password, it actually has used the LXA login, i.e. I'm also logged in to LXA now.
- I log out on SF.
- Show that I am still logged in to LXA.
- I use the same OpenID login on SF again.
- This time, I don't have to enter the LXA user/pass again because I'm still logged in on LXA. This shows that SF actually only checks if you are logged in on LXA. SF doesn't really see your password at any time (all that is handled on the LXA side).

As I haven't seen any SMF plugin which provides that functionality, I have coded it myself:
http://github.com/albertz/smf-openid-server

The code is a bit experimental. Please report problems/bugs. Will post that also later in the SMF community, maybe it is useful.

This was a first step to have user logins in OpenLieroX. By choosing OpenID, it will be possible to use any OpenID login in OLX, i.e. you can use your LXA account, your Google account or whatever.
« Last Edit: July 14, 2010, 03:39:13 pm by albert »
Logged

kokbira

  • Gi Joe Brown Brazillian Rope-Flying Ant
  • LXA Part Time Adapt
  • *****
  • Schwartz: +23/-6
  • Offline Offline
  • Posts: 529
  • 3578 credits
  • View Inventory
  • Send Money To kokbira
  • ex-player (ex-Flip and ex-s00t clan member)
    • WWW
Re: LXA as an OpenID provider
« Reply #1 on: July 14, 2010, 10:06:40 am »
Nice!
Logged

Cizin

  • Life's a bi*ch, be its pimp.
  • LXA Duracell Postworm
  • ******
  • Schwartz: +136/-12
  • Offline Offline
  • Posts: 898
  • 3617 credits
  • View Inventory
  • Send Money To Cizin
  • Dnb, Drinks, Women, Porn. Now that's life.
Re: LXA as an OpenID provider
« Reply #2 on: July 14, 2010, 01:03:58 pm »
Cheers for this addition.
Logged

DarkCharlie

Re: LXA as an OpenID provider
« Reply #3 on: July 14, 2010, 05:35:13 pm »
Great piece of work :)
Logged

albert

Re: LXA as an OpenID provider
« Reply #4 on: July 14, 2010, 07:32:09 pm »
Sorry, there seem to be a problem right now. I'll try to fix it. Be patience.
Logged

albert

Re: LXA as an OpenID provider
« Reply #5 on: July 16, 2010, 03:07:21 pm »
Ok I think it should be fixed. Can some of you try out and report back? For example, try to login to your Facebook account with it.
Logged

DarkCharlie

Re: LXA as an OpenID provider
« Reply #6 on: July 16, 2010, 06:58:31 pm »
Ok I think it should be fixed. Can some of you try out and report back? For example, try to login to your Facebook account with it.

Sf.net works. It only shows openlierox.net/openi as username. But I suppose that's correct, isn't it?
Logged

albert

Re: LXA as an OpenID provider
« Reply #7 on: July 16, 2010, 07:16:05 pm »
Logged

DarkCharlie

Re: LXA as an OpenID provider
« Reply #8 on: July 16, 2010, 07:22:16 pm »
Not here:
Logged

albert

Re: LXA as an OpenID provider
« Reply #9 on: July 16, 2010, 09:07:08 pm »
How did you even get there? Normally, you associate your already existing SF user account with the OpenID endpoint URL.

Edit: Also, what it shows there is not your OpenID identity. It is the SF username. As you have somehow managed to create a new user based on the OpenID identity, I guess that SF usernames can just be N chars long and so it has capped it. Click on "Account" (top right corner), then on "Manage My OpenIDs" and then you see the list of OpenIDs which are associated with your SF account.

Looks like this: (see attachment)
« Last Edit: July 16, 2010, 09:13:25 pm by albert »
Logged

DarkCharlie

Re: LXA as an OpenID provider
« Reply #10 on: July 17, 2010, 03:31:54 pm »
Worked now. Before when I added the OpenID, it did not appear in the list. It turned out I had to specify ?u=DarkCharlie manually.
Logged

albert

Re: LXA as an OpenID provider
« Reply #11 on: July 17, 2010, 05:00:02 pm »
That is also wrong then. You must not / should not specify that manually.

What happend when you did not specify this? When you did it just in the same way as I did? See the video.

Also, don't confuse the SF username, SF account realname with the OpenID URL. Take a look at my screenshot. My SF account realname is of course "Albert Zeyer", my SF username is "albertzeyer" and my OpenID URL is http://www.openlierox.net/openid/?u=albert . On your screenshot, it seems you have registered a new account and all it shows is either the SF username or the SF account realname.

And yes, in Stackoverflow, in your account settings, you can change the associated OpenID logins.
Logged

Raziel

Re: LXA as an OpenID provider
« Reply #12 on: July 17, 2010, 05:15:46 pm »
A simple question(s) - why did you implement this? What is it needed for? Who will be using it anyway and how many of those?
Logged
Yes, it's Raziel.

DarkCharlie

Re: LXA as an OpenID provider
« Reply #13 on: July 17, 2010, 05:18:06 pm »
That is also wrong then. You must not / should not specify that manually.

What happend when you did not specify this? When you did it just in the same way as I did? See the video.

Nothing happened, it just showed the list of my OpenIDs which was empty. However, the url looked like https://sourceforge.net/account/openid/index/feedback/openid_error, so I guess some sort of error happened but sf did not write it out to the webpage.

Quote
And yes, in Stackoverflow, in your account settings, you can change the associated OpenID logins.
I did not have an account on stackoverflow so I registered one using the OpenID. And the account itself cannot be deleted, at least I haven't found a way to do so.
Logged

DarkCharlie

Re: LXA as an OpenID provider
« Reply #14 on: July 17, 2010, 05:26:29 pm »
A simple question(s) - why did you implement this? What is it needed for? Who will be using it anyway and how many of those?

As Albert noticed, this will be used for game accounts mainly, so that one can save rankings, playing statistics, ladders, create private servers just for invited people and similar things. OpenID allows even newbies who are new to the game to use their existing accounts on Google, AIM etc. without having to register anywhere. And because LXA users will very likely want this, too, albert made LXA an OpenID provider.
Logged

albert

Re: LXA as an OpenID provider
« Reply #15 on: July 17, 2010, 06:22:36 pm »
That is also wrong then. You must not / should not specify that manually.

What happend when you did not specify this? When you did it just in the same way as I did? See the video.

Nothing happened, it just showed the list of my OpenIDs which was empty. However, the url looked like https://sourceforge.net/account/openid/index/feedback/openid_error, so I guess some sort of error happened but sf did not write it out to the webpage.

Maybe delete your cookies. It is wrong if you specify ?u=... manually. It must work without.

Quote
Quote
And yes, in Stackoverflow, in your account settings, you can change the associated OpenID logins.
I did not have an account on stackoverflow so I registered one using the OpenID. And the account itself cannot be deleted, at least I haven't found a way to do so.

Yes but in your account settings, you will find your OpenID and you can delete or change it there.
Logged
Pages: [1]   Go Up