OpenID provider based on SMF

Started by albertzeyer, July 14, 2010, 01:21:40 AM

Previous topic - Next topic

albertzeyer

Hi,

I have written a simple OpenID provider based on a SMF login.

More details here:
... (not allowed to post external links) http :// github.com [nofollow] / albertz / smf-openid-server

I am both new to OpenID and to the SMF internals, so some response would be nice (esp. if there are any big flaws I haven't thought about). Also, the code itself is a bit hackish in some parts -- patches are always welcome. :)

Thanks,
Albert

Kill Em All

SMF 2.0 already provides OpenID support by default.


My Site: KEAGaming.com

Manual Installation of Mods
Prevent Spam and Forum Attacks
Please do not PM or email me for support unless offered, help should be publicly displayed to others.

albertzeyer

An OpenID endpoint server?

I thought it supports only OpenID logins. That is a very different thing (it is exactly the opposite).

Kill Em All

I don't know much about OpenID, so I really can't say. But from my understanding I think so, but I could be wrong.


My Site: KEAGaming.com

Manual Installation of Mods
Prevent Spam and Forum Attacks
Please do not PM or email me for support unless offered, help should be publicly displayed to others.

albertzeyer

Can you for example login with your SMF account on Facebook, SourceForge, Stackoverflow or other sites?

And what is the SMF OpenID endpoint URL in that case you use?

Kill Em All

I don't know... I don't have Facebook, SourceForge, Stackoverflow, etc. haha I seriously don't.

I'm sorry, I'm not the guy to be helping out when it comes to openid.

You can simply try it though for SMF 2.0 if you want. It wouldn't hurt.


My Site: KEAGaming.com

Manual Installation of Mods
Prevent Spam and Forum Attacks
Please do not PM or email me for support unless offered, help should be publicly displayed to others.

albertzeyer

I have SMF 2.0 RC1 but I haven't found any option for that nor any source code for that. Also nothing in the documentations. The first thing for example: What is the OpenID endpoint URL in SMF?

Also, what is the OpenID endpoint URL of this site here (www.simplemachines.org)?

Btw., OpenID has found wide acceptance. On most sites nowadays, you can login via OpenID. Also SMF has support for it. Probably many other webservices you use have (or will have) support for it.

JBlaze

OpenID support in SMF 2.0 is limited only to logins to SMF using an OpenID account.
Jason Clemons
Former Team Member 2009 - 2012

albertzeyer

Ah, so then I really made something very new. Now SMF can also be an OpenID endpoint.

almays

Hello.

Thank you very much for your effort.

I am doing a ruby-on-rails site and I want to have users to login through an existing smf through your openid.

So.

Here is the decyphered response I get from your system to my ror-site


#<OpenID::Consumer::FailureResponse:0x103fc4a00
  @message="No matching endpoint found after discovering http://forum.feng-shui.ru/smf-openid-server/?u=almays",
  @endpoint=#<OpenID::OpenIDServiceEndpoint:0x10402c6a0
    @display_identifier=nil,
    @type_uris=["http://openid.net/signon/1.1"],
    @used_yadis=false,
    @server_url="http://forum.feng-shui.ru/smf-openid-server/?u=almays",
    @canonical_id=nil,
    @claimed_id="http://forum.feng-shui.ru/smf-openid-server/?u=almays",
    @local_id="http://forum.feng-shui.ru/smf-openid-server/">,
  @reference=nil,
  @contact=nil>


Hope it's understandable.
What am I doing wrong?

albertzeyer

Have you tried to use the endpoint on other sites? For example, I tested it mainly on SourceForge and Stackoverflow and it works on both.

You should enable debugging in the SMF OpenID endpoint code.

Set $profile['debug'] = true somewhere. And modify $profile['logfile'] or the debug function or make the directory writeable for the PHP script (it saves the logfile by default in the same directory).

Those debugging information should help you identifying the code.

Maybe register on Github, fork the code and if there are fixes needed, you could push them directly and I can apply them back.

Snaky_Love

Hi, thanks for this very cool solution - did you get it to work with Google and / or Yahoo?

albertzeyer

Didn't tried with Google/Yahoo, but I tried Stackoverflow and SourceForge and it works.

Kill Em All

Sorry for the delayed responses albertzeyer.

Do you still require any further assistance with this? Unfortunately I'm not an expert when it comes to OpenID.


My Site: KEAGaming.com

Manual Installation of Mods
Prevent Spam and Forum Attacks
Please do not PM or email me for support unless offered, help should be publicly displayed to others.

albertzeyer

It works for me when I tried, although I haven't really used it that much yet. But I plan in the future and then I might post here about further extensions and/or problems.

Also, almays had a problem with it and he didn't responded anymore. Not sure if he got it working or if he just laid it aside for now.

In any case, I would be interested if the SMF project is interested in maybe including this? Because such functionality does not exist yet in SMF.

Kindred

well, if it were to be added, it would not be done until 2.1 or 3.0.   version 2.0 is feature locked at this time.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

BrBerg

and that could take 1-2 years uuugh...

Oya

um how can you distribute gpl code with smf when smf doesnt have a gpl licence

Kindred

??? please be more clear what gpl code is being distributed with smf?
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Oya

none

but the mod referred to this topic IS gpl which means you cant distribute it as it doesnt comply with smf license nor acn you integrate it into smf 2.1 or 3.0 without a lincense chage

Advertisement: