Single Sign On support?

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    php|uber.leet Forum Index // General
View previous topic :: View next topic  
Author Message
GGawish



Joined: 12 Mar 2008
Posts: 2

PostPosted: Wed Mar 12, 2008 9:24 am    Post subject: Single Sign On support? Reply with quote
Hi Nick,

I've been looking all over the net for SSO between MediaWiki and phpBB -- seems several people are looking for this but nobody is supporting it.

While looking for this, I stumbled upon your extension. If I understand correctly, your extension supports Single Login (one userid/passwd for both) but not Single Sign On (user logs in once and is logged into both; user logs out and is logged out of both). Assuming this is the case, do you plan on supporting SSO? This looks like a natural next step and I wonder if this is on the near horizon?

If not, can you recommend any alternatives?

Thanks,
Gerald
Back to top
View user's profile Send private message
root
Site Admin


Joined: 24 Jun 2005
Posts: 471

PostPosted: Wed Mar 12, 2008 10:46 am    Post subject: Reply with quote
The current problem I have with SSO is that I want to use the same code that phpBB uses. So as they update their user object I don't have to re-hack my version. The problem is name space. Both MW and phpBB have a User class and they conflict.

Please see http://us.php.net/namespaces

Quote:
Namespaces are available in PHP as of PHP 5.3.0. This section is experimental and subject to changes.


The current stable release is PHP 5.2.5 so it will be a while before I am able to code it how I would like to.
Back to top
View user's profile Send private message
GGawish



Joined: 12 Mar 2008
Posts: 2

PostPosted: Wed Mar 12, 2008 12:17 pm    Post subject: Reply with quote
I see. I agree it would be nice if the scoping issue was resolved. So, in your opinion, does that mean there is no way to do this with the provided plug-in interfaces (i.e., without resorting to hacks)?

And, as a follow-up, do you think a hack may be an appropriate intermediate step while working towards a solution that uses PHP 5.3 namespaces, once available?

I am an experienced programmer (C/C++/Java), but new to PHP. This may make a good project for me to get into PHP (and learn the interfaces to MediaWiki and phpBB). Just thinking out loud.

Thanks!
Back to top
View user's profile Send private message
root
Site Admin


Joined: 24 Jun 2005
Posts: 471

PostPosted: Thu Mar 13, 2008 1:36 pm    Post subject: Reply with quote
I'd pick another project to cut your teeth on. Seeing the inside of MW and phpBB will prob make you hate php. But just in case you do all you need to look at is how phpBB handles, Cookie/Session authentication. Then write a method that writes that cookie/session data when a user logs into MW.
Back to top
View user's profile Send private message
GhostInTheMachine



Joined: 13 Apr 2009
Posts: 4

PostPosted: Mon Apr 13, 2009 2:10 am    Post subject: Reply with quote
Has anybody since had a try at the single login?
Back to top
View user's profile Send private message
root
Site Admin


Joined: 24 Jun 2005
Posts: 471

PostPosted: Mon Apr 13, 2009 9:33 am    Post subject: Reply with quote
There are a few posts around here where people have SSO working.

Most involve changes to code phpBB or MW code so I have not merged them into Auth_phpBB.
Back to top
View user's profile Send private message
GhostInTheMachine



Joined: 13 Apr 2009
Posts: 4

PostPosted: Mon Apr 13, 2009 12:07 pm    Post subject: Reply with quote
Oh!
A link or two would be tasty...
Back to top
View user's profile Send private message
root
Site Admin


Joined: 24 Jun 2005
Posts: 471

PostPosted: Thu Apr 16, 2009 11:35 am    Post subject: Reply with quote
Sorry GhostInTheMachine, I just reviewed the posts I was thinking of and was unable to find any that do SSO.
Back to top
View user's profile Send private message
GhostInTheMachine



Joined: 13 Apr 2009
Posts: 4

PostPosted: Thu Apr 16, 2009 12:10 pm    Post subject: Reply with quote
Sadness...

I'll see what I can do.
Back to top
View user's profile Send private message
GhostInTheMachine



Joined: 13 Apr 2009
Posts: 4

PostPosted: Sat Apr 18, 2009 5:59 am    Post subject: Reply with quote
Any idea if new phpBB account names can be forced to start with upper case? (That way they match the created wiki account name.)
Back to top
View user's profile Send private message
root
Site Admin


Joined: 24 Jun 2005
Posts: 471

PostPosted: Tue Apr 21, 2009 10:00 am    Post subject: Reply with quote
Someone posted something @ http://www.mediawiki.org/wiki/Extension:PHPBB/Users_Integration#Usernames_rules
Back to top
View user's profile Send private message
bildr



Joined: 01 May 2011
Posts: 1

PostPosted: Sun May 01, 2011 7:40 am    Post subject: Reply with quote
I wanted to tell you.

I got SSO working using phpbb's sessions.

The issue as you know is that MW and phpbb both have a user class.

Luckily when you use phpbb's session integration, the user class is simply called once.

so I just went into the sessions.php copied the user class, and named the second copy phpbb_user.

Code:

if (!defined('FROM_MEDIAWIKI')){
    class User extends session{
    //user class code
    }

}else{
    class phpbb_user extends session{
    //exact copy of user class code
    }

}


Im working on a plugin if all the testing goes well.

But I do have it working on my site bildr.org

Im using AuthPlugin to do the auto create and login
Back to top
View user's profile Send private message
root
Site Admin


Joined: 24 Jun 2005
Posts: 471

PostPosted: Mon May 02, 2011 8:32 am    Post subject: Reply with quote
While this method will/can work.

It does break one rule for integration. Not editing any of the phpbb or MW code base. Having to edit the code every time there is an update to phpBB or MW adds too much overhead for what I want in a plug-in. For a while it felt like phpBB used to roll out security updates every week.

That being said there is a large user base where the overhead is worth the functionality. So press forward.
Back to top
View user's profile Send private message
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    php|uber.leet Forum Index // General All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

alexisBlue v1.2 // Theme Created By: Andrew Charron and Web Hosting Bluebook
Powered by phpBB © 2001, 2002 phpBB Group