Change font size   Print view

phpBB OpenID

An OpenID implementation for phpBB 3 forums.

Moderators: Development Team, Tester

Re: phpBB OpenID

Postby MasterZ » Sat Jan 23, 2010 6:32 am

kashthealien wrote:The server configuration is such that it won't allow servers outside the institute to get in.
This is for security of some of the other websites hosted on the same server.
Perhaps that is why it was not possible.
That is why no ssh / ftp access is possible and extplorer had to be used.

Once again, Thank you :D !


:shock:
Image
User avatar
MasterZ
Warrant Officer
Warrant Officer
 
Years of membership
 
Posts: 456
Joined: Sun Oct 05, 2008 11:48 am
Location: Colorado Springs

Re: phpBB OpenID

Postby MasterZ » Sat Jan 23, 2010 7:58 pm

I'm making a slight change to the version numbering system.

If the MOD can be updated by only uploading new versions of the MOD file and does not require any file edits to upgrade then the 3rd number will increase (0.3.1, 0.3.2, etc)

If updating will require file edits then the second number will change (0.3.0, 0.4.0, etc).

Major rewrites of the stable code will change the first digit. (1.0, 2.0, etc)
Image
User avatar
MasterZ
Warrant Officer
Warrant Officer
 
Years of membership
 
Posts: 456
Joined: Sun Oct 05, 2008 11:48 am
Location: Colorado Springs

Re: phpBB OpenID

Postby kashthealien » Thu Jan 28, 2010 9:20 am

Hi,

Could you please tell me which ports of the server need to be open for this to work?
kashthealien
Enlisted Cadet
Enlisted Cadet
 
Posts: 11
Joined: Mon Jan 18, 2010 3:53 pm

Re: phpBB OpenID

Postby MasterZ » Thu Jan 28, 2010 7:23 pm

I do not know... This relies on some PHP methods to fetch the data, I do not know what those require to work. if it is a port issue or if it is a PHP configuration issue.
Image
User avatar
MasterZ
Warrant Officer
Warrant Officer
 
Years of membership
 
Posts: 456
Joined: Sun Oct 05, 2008 11:48 am
Location: Colorado Springs

Re: phpBB OpenID

Postby kashthealien » Fri Jan 29, 2010 6:35 am

Hi, :)

It works! :D
I put it on a different server kashyappuranik.exofire.net/phpBB3/
Thank you! :)

but there are small problems when I log in the first time.
kashthealien
Enlisted Cadet
Enlisted Cadet
 
Posts: 11
Joined: Mon Jan 18, 2010 3:53 pm

Re: phpBB OpenID

Postby Thomas Wrobel » Fri Jan 29, 2010 11:05 am

I hope this is the right place to post this...

Firstly Id like to say thanks for such a fantastically useful mod.
I have recently set it up on my sites forum and it worked without any pains whatsoever. :)

However, Id like to be able to allow my users to login also using a javascript/gwt interface, which makes up most of the sites functionality. (the forum is really supplementary, but handles the login for everything).

I have managed to emulate the login submission form using gwt, and it works to log people in...provided they were already logged in with their OpenID host.
If they wernt logged in already normally the mod (openid_login.php) would redirect them. But as Id like them to stay on the same page, I need to think another way to do this. If I could just load the redirect/login page into an iFrame I think I could get it to work neatly. Only I'm not sure how to integrate this with your code.
I assume Id need to make a copy of "openid_login.php" such as "openid_login_forjavascript.php" and point the javascript based form to that. Then make a few adjustments for it to return a url for the login rather then redirect the page? (or possibly echo back the whole page contents?).
I'm reasonably good with php, so just a few pointers should help me.

Naturally I want to be as non-destructive as possible and not interfere with the normal functionality of the mod.

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

Re: phpBB OpenID

Postby MasterZ » Fri Jan 29, 2010 2:32 pm

Thomas Wrobel wrote:I have managed to emulate the login submission form using gwt, and it works to log people in...provided they were already logged in with their OpenID host.
If they wernt logged in already normally the mod (openid_login.php) would redirect them. But as Id like them to stay on the same page, I need to think another way to do this. If I could just load the redirect/login page into an iFrame I think I could get it to work neatly. Only I'm not sure how to integrate this with your code.
I assume Id need to make a copy of "openid_login.php" such as "openid_login_forjavascript.php" and point the javascript based form to that. Then make a few adjustments for it to return a url for the login rather then redirect the page? (or possibly echo back the whole page contents?).
I'm reasonably good with php, so just a few pointers should help me.


I'm not sure how gwt works and I know very little javascript.

OpenID requires redirecting the user to another page, that's the whole principle of how it works, you get redirected to the provider to authenticate and then come back to the forum with a pass/fail message.

If you want to redirect to a certain page after login that can be done easily. Let me know more of what you want to do with this and I will see if I can help you out at all.
Image
User avatar
MasterZ
Warrant Officer
Warrant Officer
 
Years of membership
 
Posts: 456
Joined: Sun Oct 05, 2008 11:48 am
Location: Colorado Springs

Re: phpBB OpenID

Postby Thomas Wrobel » Fri Jan 29, 2010 2:59 pm

GWT is basically a way to code Javascript using plan java, and having all the browser-differences worked out for you.
You dont have to worry about that though.

What I need, basically, is some way to provide my own login interface for this mod.
So rather then the php itself redirecting to the providers authentication page, it would send the page url it needs to my code, then I would open that up (either with a popup or in a iFrame), rather then refreshing the whole page.

When I send the form to the php using javascript any "echo" statements in the php get relayed back as the response. So its easy enough to get data from the php to my code. I really need to just see what data to exchange and where.

I'll send you a link to the site I'm working on by PM, so you can see what I'm doing a little more clear. If you use firebug you will then be able to see what happens at the moment when you try to login ver OpenID.
Sorry if I'm not being so clear. Hopefully this wont be too much trouble, I think I'll be able to work it out mostly myself once I have a few pointers on where I have to look in your code.
Thomas Wrobel
Civilian
Civilian
 
Posts: 4
Joined: Fri Jan 29, 2010 10:54 am

Re: phpBB OpenID

Postby MasterZ » Fri Jan 29, 2010 5:36 pm

The OOP design of the MOD should make it easy for you to tweak to do what you want it to do. Just make use of the already existing class. There is a function that generates the link to send the user to for login and another part that handles the response. You should be able to build your interface around this fairly easily. Look through the openid_login.php and ask me any questions you have about what the methods do and why they are called.
Image
User avatar
MasterZ
Warrant Officer
Warrant Officer
 
Years of membership
 
Posts: 456
Joined: Sun Oct 05, 2008 11:48 am
Location: Colorado Springs

Re: phpBB OpenID

Postby Thomas Wrobel » Sun Jan 31, 2010 11:00 am

Ok, thanks.
I think my first query is here then;

Code: Select all
// Redirect the user to the OpenID server for authentication.  Store
   // the token for this authentication so we can verify the response.

   $phpbb_openid->processOID();


If the user has just submitted the form, can I confirm this is the bit that would normally trigger a page redirect?

What I need to do is instead of redirecting echo the url out.
(but presumbly $phpbb_openid still needs to get that token).

My code would then load that url up in an iFrame.
Thomas Wrobel
Civilian
Civilian
 
Posts: 4
Joined: Fri Jan 29, 2010 10:54 am

PreviousNext

Return to phpBB OpenID

Who is online

Users browsing this forum: No registered users and 1 guest

cron