Topic-icon Log in not working correctly..

Active Subscriptions:

None
13 years 8 months ago #26369 by J77J
Hi there,

I have a site with various software joined by JFusion.

jomsoc.mydomain.com - this is a jomsocial site - which is where registration occurs
mydomain.com - joomla site
phpbb.mydomain.com - phpbb forum
magento.mydomain.com - magento site

So, trying to register using JFBConnect, results in me being logged into:
jomsoc.mydomain.com and phpbb.mydomain.com
but not:
mydomain.com or magento.mydomain.com

however, if I check whether a new user was registered on all - it was. I can also log in as normal to all using this new user (created by JFBConnect) if i log in as normal through any of the sites. If I try to log in through JFBConnect though, I get the same behaviour as at registration. ie, I am logged into:
jomsoc.mydomain.com and phpbb.mydomain.com
but not:
mydomain.com or magento.mydomain.com

So it seems to be a problem of logging in using JFBConnect?

I should add, when I then got to the magento site it shows:

Invalid login or password.

and the joomla site shows:

JFUSION_INVALID_PASSWORD

So the attempt is made by jfusion to log in to those sites - but the login information seems to be incorrect at that stage? hmm...
The topic has been locked.
Support Specialist
13 years 8 months ago #26377 by alzander
We don't test directly with jFusion, but have had reports of many users getting things working. However, I can't guarantee that combination and across that many sites will work. We do have a tip on our Common Support Questions area about how best to configure jFusion. If you haven't already seen it, please check it out. It's the 2nd to last question.

Again, I really don't know jFusion that much, but the config options on that page have been confirmed to work across quite a few different systems.

Hope that helps, but if not, let us know. We'll do what we can, but we may also have to refer you to jFusion's support area which may be able to help understand and diagnose the issue further.. especially since it's working on some of the sites (which should help with debugging the problems with the other sites).

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
13 years 8 months ago #26381 by J77J
Replied by J77J on topic Log in not working correctly..
Hi Alex,

>>Order the JFBConnect Authentication plugin before (lower number) the JFusion Authentication plugin
Already had this set up this way..
>>Order the JFBConnect User plugin before (lower number) the JFusion User plugin
Already had this set up this way..
>>In JFusion, for the setting of "What method would you like to use for dual login?", select "Let jfusion create cookis without accessing files".
Already had this set up this way.. (phpbb only - as the other plugins don't have this option)

So unfortunately this is not the answer for me.. The reason I think the problem is with JFBConnect and not JFusion is that registering with JFBConnect does register with all the softwares - so this works fine..

Logging in using the newly created user via any of the softwares then also logs in all - so this works fine.. (this suggests to me that JFusion for its part is functioning ok to log in - I could be wrong)

But logging in using JFBConnect does not log the user in to all the associated softwares - just the jomsocial site and PHPBB strangely..

the only thing I could think of was that I have 2 instances of JFusion - the second one is running on the slave joomla to enable dual login - So I disabled this completely to test, but exactly the same results...

Cheers,

Johnny
The topic has been locked.
Active Subscriptions:

None
13 years 8 months ago #26383 by J77J
Replied by J77J on topic Log in not working correctly..
I should add, when I then got to the magento site it shows:

Invalid login or password.

and the joomla site shows:

JFUSION_INVALID_PASSWORD

So the attempt is made by jfusion to log in to those sites - but the login information seems to be incorrect at that stage? hmm...
The topic has been locked.
Support Specialist
13 years 8 months ago #26387 by alzander
Unfortunately, I'm not sure if that will work. The cookie setting works with PHPBB and would work with other software that supports it. However, we haven't heard of anyone trying to use jFusion with Magento and JFBConnect.

My guess is that jFusion is trying to send the username/password that the user is logging into Joomla with over to Magento. That will not work with JFBConnect though as we don't log the user into Joomla using their Joomla credentials or any other credentials, really. Facecook simply tells us "User 12345 is authentic" and we know what Joomla user that relates to on your site. At that point, we know the user's username, but we never know their password. So, if the original username/password is required for the bridge to work, I don't know of any way you could make that work.

With phpBB it works simply because jFusion is setting a cookie that user xyz is logged in. The username/password is never truly authenticated by phpBB, because it's not available.

Hope that makes sense. This, again, may be something you need to talk with jFusion about to let them know you have a system that says "Joomla user ID is logged in", but that's all you know (specifically, you don't know the original password for the user). Hopefully, they may have a method to force the user to login to Magento.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
13 years 8 months ago #26393 by J77J
Replied by J77J on topic Log in not working correctly..
OK,

however - I have jfbconnect create a joomla user on registration and this user's info is passed to the other instance of joomla and magento (as the user is registered there after registration in) does this make any difference?

Or does it do that anyway?
The topic has been locked.
Active Subscriptions:

None
13 years 8 months ago #26397 by J77J
Replied by J77J on topic Log in not working correctly..
Aha...

when I run the login checker on jfusion it shows:

jfbconnectuser User Plugin: User Plugin Error

I'm assuming this is not the case with your other users of jfbconnect and jfusion...

any ideas as to why this would be showing an error? (I know that there's not anything to go on there, but any obvious possibilities?)

thanks,

Johnny
The topic has been locked.
Support Specialist
13 years 8 months ago #26401 by alzander
On registration, JFBConnect has the user's username and password, since we either create it for them or the user enters it at that point. When they login later just using their Facebook credentials, we don't see their username or password at all. We can look the username up using our 'mapping' between the Facebook's user ID and their Joomla ID. However, at that point, we have no way (it's impossible) to see their raw password. If that raw password (what they would normally enter on the login form) is required to log the user into Magento as well, then that will be a big problem because we simply can't get that info.

I'm not sure about the User Plugin Error. Again, we don't test with jFusion, so I don't know the extension or how it works very well. I know it works for other users (primarily with PHPBB and secondary Joomla sites), but not sure what that error means. Is there any other information available as to what the error actually is?

Alex
The topic has been locked.