Change font size   Print view

phpBB OpenID

An OpenID implementation for phpBB 3 forums.

Moderators: Development Team, Tester

Re: phpBB OpenID

Postby MasterZ » Sun Jan 31, 2010 1:06 pm

Yes.

Thinking about it, if you want to just change how the redirect works then you can do that in the redirect method.

/includes/openid/openid_class.php
FIND function redirect($url)

That controls how the page redirects, but as long as the user gets to $url I do not think it matters how the user gets there. Although I think that method is also used to return the user to the index page as well after logging in. You might need to add a second variable to that method for including in a frame or not, then the processOID method could tell it to use the new frame.

Hopefully I'm making sense :)
Image
User avatar
MasterZ
Warrant Officer
Warrant Officer
 
Years of membership
 
Posts: 459
Joined: Sun Oct 05, 2008 11:48 am
Location: Colorado Springs

Re: phpBB OpenID

Postby Thomas Wrobel » Mon Feb 01, 2010 2:58 pm

Yes, that helps...I got the url echo'd back nicely, but only if a variable is set to true.

I did spot a slight problem with my first plan...if I open the url in an iFrame, and the user logs in from that, my code has no way to know that did it. (other then to keep checking periodically, which is a bit poor coding).
So I'm now just opening popup of openid_login.php with the fields as url parameters.

Anyway, I think I got it working as far as the php end goes.
(Now I gotta figure out how to get javascript to know if the login popup window was closed),

Cheers for your help :)
Thomas Wrobel
Civilian
Civilian
 
Posts: 4
Joined: Fri Jan 29, 2010 10:54 am

Re: phpBB OpenID

Postby shanmukh » Thu Feb 11, 2010 8:45 pm

I am a friend of kashthealien. I too am looking into the same problem. It is found that, the server http://cfi.iitm.ac.in/phpBB3 is hosted connects to internet only via a proxy server and therefore it is not able to contact google or any openid service provider.

I just saw http://code.google.com/apis/accounts/docs/OpenID.html#AuthProcess
Probably it is not able to execute 3rd/5th step. I tried going through the code, it is too big. Can you help me locate which file the 3rd and 5th steps are coded in?
shanmukh
Civilian
Civilian
 
Posts: 1
Joined: Thu Feb 11, 2010 8:35 pm

Re: phpBB OpenID

Postby MasterZ » Fri Feb 12, 2010 5:43 am

shanmukh wrote:Can you help me locate which file the 3rd and 5th steps are coded in?


All of the functional code is in the /includes/openid/openid_class.php file and is called/constructed in /openid_login.php
Image
User avatar
MasterZ
Warrant Officer
Warrant Officer
 
Years of membership
 
Posts: 459
Joined: Sun Oct 05, 2008 11:48 am
Location: Colorado Springs

Re: phpBB OpenID

Postby MasterZ » Fri Feb 26, 2010 3:33 pm

Updated to 1.0.0 RC1! Submitted to phpBB's MOD validation team.
Image
User avatar
MasterZ
Warrant Officer
Warrant Officer
 
Years of membership
 
Posts: 459
Joined: Sun Oct 05, 2008 11:48 am
Location: Colorado Springs

Re: phpBB OpenID

Postby MasterZ » Sun Feb 28, 2010 2:10 pm

I goofed :(

After testing the MOD I made one final change to fix something that was just written wrong in the code, and I did not test after that.... It turns out that when I made that fix I broke the UCP page completely. Issue fixed, tested and released as 1.0.1. I apologize for any inconvenience.

To upgrade from 1.0.0 or 0.3.0 just copy over the new files.
Image
User avatar
MasterZ
Warrant Officer
Warrant Officer
 
Years of membership
 
Posts: 459
Joined: Sun Oct 05, 2008 11:48 am
Location: Colorado Springs

Re: phpBB OpenID

Postby simvader » Sun Mar 14, 2010 12:20 am

What is the point in openID? I thought it was a fail, because no one used it?
User avatar
simvader
1st Year Cadet
1st Year Cadet
 
Posts: 16
Joined: Tue Mar 09, 2010 1:52 am

Re: phpBB OpenID

Postby MasterZ » Sun Mar 14, 2010 1:27 am

The point of OpenID is that you can login to multiple sites with a single sign on. Such as forums (those that use this MOD).

It is not fail, it is gaining momentum right now. Yahoo, Google, Facebook, and many other popular sites are all starting to use OpenID in some form or another.
Image
User avatar
MasterZ
Warrant Officer
Warrant Officer
 
Years of membership
 
Posts: 459
Joined: Sun Oct 05, 2008 11:48 am
Location: Colorado Springs

Re: phpBB OpenID

Postby paulej » Wed Mar 17, 2010 5:35 pm

MasterZ wrote:The point of OpenID is that you can login to multiple sites with a single sign on. Such as forums (those that use this MOD).

It is not fail, it is gaining momentum right now. Yahoo, Google, Facebook, and many other popular sites are all starting to use OpenID in some form or another.


I completely agree with you. OpenID is gaining momentum and making life a heck of a lot easier. Proof in point, I just logged in and posted this reply in seconds using my own OpenID server. It's really cool.

I'm pleased to find this mod. Has there been any discussion to get this added as a part of the official phpbb distribution?
paulej
Civilian
Civilian
 
Posts: 1
Joined: Wed Mar 17, 2010 5:33 pm

Re: phpBB OpenID

Postby MasterZ » Wed Mar 17, 2010 9:19 pm

paulej wrote:I'm pleased to find this mod. Has there been any discussion to get this added as a part of the official phpbb distribution?


With the changes in the structure of phpBB for future versions this may be possible, although I do not want to do the work for that. :lol: I will suggest it and they can use my MOD for a starting point if they want, but I have too many things going on to try and code for the core.
Image
User avatar
MasterZ
Warrant Officer
Warrant Officer
 
Years of membership
 
Posts: 459
Joined: Sun Oct 05, 2008 11:48 am
Location: Colorado Springs

PreviousNext

Return to phpBB OpenID

Who is online

Users browsing this forum: No registered users and 1 guest