Quick query to see if JFBConnect is the answer

Quick query to see if JFBConnect is the answer

Looking to integrate login to our school website with our subscription to Google Apps for Education. Looks like your product may just be the solution we are looking for.

We are only intending to use Google authentication, no other social platforms but need to be able to restrict this to addresses coming from a single domain. We don't want public access just the staff and students within our school. So my question, is it possible to restrict login to email addresses from a single domain rather than the whole of Google.

Thanks in advance for any information.
David

d.robe
useravatar
Offline
9 Posts
Active Subscriptions:

None
Administrator has disabled public posting. Please login or register in order to proceed.

Re: Quick query to see if JFBConnect is the answer

Unfortunately, I don't think JFBConnect would suit your needs. I had to do some looking around at Google Apps for Education, but from what I can tell, it uses a different single-sign-on method than GMail or Google+, which we do support. That right there likely makes it a non-starter.

Beyond that, we don't support domain-specific registrations, but that's actually a pretty easy thing to implement. We've helped other customers do so in the past and it's only a few lines of code.

If you want to try JFBConnect to see if you can setup authentication through Google, please try getting a subscription and we'll gladly help through any issues you encounter. We have a 30-day money back guarantee. If you can't get things going, no worries.

Thanks,
Alex

If you use our extensions, please consider leaving a rating and review at the Joomla! Extension Directory:
JFBConnect | SCLogin

alzander
Alex
useravatar
Offline
23825 Posts
Support Specialist
Administrator has disabled public posting. Please login or register in order to proceed.

Re: Quick query to see if JFBConnect is the answer

Alex,

Thanks for you reply... so I decided that nothing ventured nothing gained and registered and paid with you guys, downloaded and installed using your perfect video tutorials.

Setup my Google authentication project via Google Apps for Education, which has an almost identical UI as your video and certainly produced API key and Secret just as you suggest it would.

Added these to my Joomla site and configured JFBConnect and all works just as one would like to see. Perfect, just taken a load of hassle out of my day job, rather than manual setup of 200 users and give them random passwords they can now subscribe using the Google+ button, magnificent.

Now as I mentioned in my earlier post the world and his wife will have no need to access our school site and registering accounts would be pointless...parents however might get excited about the ability so I need to be able to restrict this to a single domain where only my staff and pupils have registered accounts. Do you have a handy code snippet that I can add somewhere to achieve this. You help would be most appreciated.

JFBConnect has just gone to the top of my list for must have extensions in a Joomla site. Thank you in advance...
David

d.robe
useravatar
Offline
9 Posts
Active Subscriptions:

None
Administrator has disabled public posting. Please login or register in order to proceed.

Re: Quick query to see if JFBConnect is the answer

David,
Glad to hear it worked so well for you out of the box for your needs. Obviously, test a lot, but sounds like you're on the right path.

There's 2 places to make the code change you'd need, but you really only would need it in one.. can you let us know if you have Automatic Registration enabled or if you're letting users setup their own accounts? Also, if you're using any social profile plugins for importing data into another extension, let us know that as well so we give you the right piece of code and you shouldn't run into too many issues.

Thanks,
Alex

If you use our extensions, please consider leaving a rating and review at the Joomla! Extension Directory:
JFBConnect | SCLogin

alzander
Alex
useravatar
Offline
23825 Posts
Support Specialist
Administrator has disabled public posting. Please login or register in order to proceed.

Re: Quick query to see if JFBConnect is the answer

Thanks for your reply Alex. I'm testing it like mad, tweaking settings as I go but I think I have pretty much exactly what I need now and it certainly does the job.

In answer to your question... we use Community Builder and Kunena on our site so I do have the Social Plugin for CB loaded and the correct fields are being mapped across from Google to Joomla. As the intention is to only allow users in our domain to access the site "Automatic Registration" would seem to be the obvious choice, using JFBConnect to create all the accounts and user fields required. Hope that this is what you were asking me for and is enough to advise code and where to place it. You haven't asked for the domain but I have PM'd you the details just in case you need them.

Once last question, do you have any plan to implement Office 365 authentication? I note you support Windows Live but I believe that it is different from O365, could be wrong on that. A lot of the school web based products we use hook into O365 and we use that authentication in preference to Google where available just a question...

Anyway many thanks for your assistance along the way, await your further advice. Regards
David

d.robe
useravatar
Offline
9 Posts
Active Subscriptions:

None
Administrator has disabled public posting. Please login or register in order to proceed.

Re: Quick query to see if JFBConnect is the answer

There is nothing worse than posting again o'er top of your previous post but I was wondering if you had any thoughts regarding a possible solution to my issue? I have done all I need now to get this live but cannot add the button whilst it would accept registrations from Tom, Dick and Harry and their Google accounts. Appreciate that you are all pretty busy but if you have any ideas would be more than most pleased :-)

Very Best Regards
David

d.robe
useravatar
Offline
9 Posts
Active Subscriptions:

None
Administrator has disabled public posting. Please login or register in order to proceed.

Re: Quick query to see if JFBConnect is the answer

David,
I really apologize for the delay. We usually don't let things linger so long, but this issue just took a little time to make sure the code we recommend is the right code. We've done it before, and frankly, it probably should be an option in our settings.. but that's a discussion for another day.

Anyways, here's the code that should do what you're looking for. Please edit the /components/com_jfbconnect/models/loginregister.php. Around line 219, you should see:

Code:

        $newEmail = $profile->get('email');

        $fullname = $profile->get('full_name');

Right after that, add the following:

Code:

        if (strpos($newEmail, '@domainname.com') === false)

         JFactory::getApplication()->redirect(JRoute::_('index.php') );

That's it! That first line simply checks if the email contains the proper domain name (update it as necessary). If that domain is not found in the email address, the next line will redirect the user back to the home page. You can update the index.php to a full non-SEF URL (index.php?option=com...) if you want to redirect elsewhere.

Please test and again let us know how it goes.

Thanks,
Alex

If you use our extensions, please consider leaving a rating and review at the Joomla! Extension Directory:
JFBConnect | SCLogin

alzander
Alex
useravatar
Offline
23825 Posts
Support Specialist
Administrator has disabled public posting. Please login or register in order to proceed.

Re: Quick query to see if JFBConnect is the answer

Well that does the trick, added snippet to the file and works like a dream. Simple redirect after failed attempt which is exactly what I need.

Thank you guys so much, this solves a long outstanding issue with authentication and our school website. Can't remember how or why I stumbled upon your extensions but very glad I did.

Last up then, do you have any plans to add-in Office 365 authentication in addition to Windows Live, would like it even more if you were thinking about it :-)

Great work here, regards.
David

d.robe
useravatar
Offline
9 Posts
Active Subscriptions:

None
Administrator has disabled public posting. Please login or register in order to proceed.

Re: Quick query to see if JFBConnect is the answer

Very, very happy to hear that all works for you how you want.

We don't currently have plans to add Office 365 support. I'm not sure what it would take to integrate with them or if they have the proper Oauth2 workflows that would support authentication. We'll gladly add it to our to-do list to investigate, but that's no guarantee of when or if it would be implemented.

Of course, if you need anything else, just let us know.

Finally, if you haven't already, please consider leaving a rating and review for JFBConnect, or our support, on the Joomla Extension Directory. It's certainly not required, but very appreciated:
http://extensions.joomla.org/extensions … jfbconnect

Thanks,
Alex

If you use our extensions, please consider leaving a rating and review at the Joomla! Extension Directory:
JFBConnect | SCLogin

alzander
Alex
useravatar
Offline
23825 Posts
Support Specialist
Administrator has disabled public posting. Please login or register in order to proceed.
There are 0 guests also viewing this topic
There are 0 users also viewing this topic

Board Info

Board Stats
 
Total Topics:
11505
Total Polls:
0
Total Posts:
48428
Posts today:
13
User Info
 
Total Users:
47477
Newest User:
ShariBridges2
Members Online:
4
Guests Online:
706

Social Stream
Refer and Earn

Like our extensions? You're not alone! That's why they're used on tens of thousands of websites. Now you can earn 20% of any sale you refer to SourceCoast.com.

We provide excellent documentation, well laid out sales pages and great support. All you need to do is spread the word and we'll take care of the rest.

Learn About Our Affiliate Program