Skip to Content Skip to Menu

CB Connect: restrict Google user logins to the GSuites domain?

6 years 2 months ago #306929 by catconner1
Hi, I've been trying out CB Connect to allow our employees to use their GSuites logins to access our Joomla site. The authentication works great, but I'm trying to figure out how to restrict use of the Google login to ONLY those who log in using a mail address with our GSuites domain (similar to the "Always Use Suffix" function in the deprecated Joomla GMail authentication plugin).

*Only* the Gsuite users from our corporate domain should be able to log in using their Google email addresses; all other users should be forced to register for a username directly with our site and be authenticated by CB/Joomla.

I tried turning off the Registration in CB Connect->Google settings, and creating the GSuites users by hand, but it seems you can't log in with a Google user if registration is turned off.

Is this possible to do with CB Connect?

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48444
  • Thanks: 8277
  • Karma: 1443
6 years 2 months ago #306935 by krileon
There's no functionality in Googles single sign on API to limit the email address domain. There's no guarantee it will even return an email address as it's subject to privacy settings of their account. However CB Connect does fire the normal onBeforeUserRegistration trigger, which you could use to check their email address in CB Auto Actions to redirect away with a Redirect action or throw an error using a Code action to interrupt the registration process.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.
The following user(s) said Thank You: catconner1

Please Log in or Create an account to join the conversation.

6 years 2 months ago #306937 by catconner1
Thanks for the reply krileon, appreciate it. Another question then -- is there any way to create the Joomla users first, and use CB Connect WITHOUT the Google registration feature activated?

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48444
  • Thanks: 8277
  • Karma: 1443
6 years 2 months ago #306942 by krileon

Thanks for the reply krileon, appreciate it. Another question then -- is there any way to create the Joomla users first, and use CB Connect WITHOUT the Google registration feature activated?

Yes, they'll have to login normally then use the Link button in your login module to link their social media account. Beyond that, no.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum