New plugin call hook type & OpenID plugin [message #162341] |
Wed, 28 April 2010 10:12 |
omniton
Messages: 6 Registered: April 2010
Karma: 0
|
Junior Member |
|
|
hi,
to support external authentication services like OpenID, OAuth, etc i offer add new plugin call hook type: PRE_AUTHENTICATE. It lets to authenticate without entering login/password and to use native fudforum's redirection to login page. Patch attached. It works for forum.sourcefabric.org
-
Attachment: login.diff
(Size: 2.22KB, Downloaded 915 times)
[Updated on: Thu, 29 April 2010 17:00] Report message to a moderator
|
|
|
|
Re: New plugin call hook type [message #162351 is a reply to message #162345] |
Wed, 28 April 2010 20:38 |
omniton
Messages: 6 Registered: April 2010
Karma: 0
|
Junior Member |
|
|
hi Frank,
for sure. Patch attached.
Some hints about plugin. After first call the plugin should redirect to external auth service where user will be authenticated. Then user is returning again to fudforum login where plugin will catch the passed request params (token, identity, etc) and search for user. On exit plugin should return fud_user_reg object.
[Updated on: Wed, 28 April 2010 20:43] Report message to a moderator
|
|
|
|
Re: New plugin call hook type [message #162357 is a reply to message #162341] |
Thu, 29 April 2010 16:48 |
omniton
Messages: 6 Registered: April 2010
Karma: 0
|
Junior Member |
|
|
so, there is simple but full functional openid plugin. It shows how PRE_AUTHENTICATE hook can be used for openid, oauth or any other custom external authentication services at least your corporate server to provide SSO.
Just change example.com in ini to your host name and you can authenticate via google your users who registered with googl's email address. You can change to any other openid provider but only google returns email. By default providers returns just openid identity.
[Updated on: Thu, 29 April 2010 16:49] Report message to a moderator
|
|
|
|
|
|
Re: New plugin call hook type [message #162435 is a reply to message #162432] |
Mon, 10 May 2010 01:49 |
The Witcher
Messages: 675 Registered: May 2009 Location: USA
Karma: 3
|
Senior Member |
|
|
naudefj wrote on Sat, 08 May 2010 13:55Your plugin works like a charm! However, I think we should rather move it into core and introduce an admin toggle to enable/disable OpenID logins. We can also add a nifty OpenID selector on the login page. What do you think?
I concur with the admin toggle, like the quick reply function this is an option not everyone would want and even then perhaps not all the time.
"I'm a Witcher, I solve human problems; not always using a sword!"
|
|
|
|
|
|
|