Skip to Content Skip to Menu

🎃 Happy Halloween! Treat yourself with an awesome discount on memberships! Get 20% off now with code SPOOKY-2024!

CB Connect - Settings

  • knowhow
  • knowhow
  • OFFLINE
  • Posts: 4
  • Thanks: 0
  • Karma: 0
8 years 6 months ago - 8 years 6 months ago #280383 by knowhow
CB Connect - Settings was created by knowhow
Hi,

I have installed CB Connect v7 plugin to me CV v2.0.14 on to my Joomla 3.5.1 site at www.stuk.cloud .

I am looking to integrate this with a Google Apps for Education account I have. I have created the API and now anyone with a Google Account can log in to my site by pressing the Google+ Icon in the CB Login Module. However I need to be a bit more restrictive and user friendly.

1. When someone logs in using the Google Apps for Education Account I have to have the username field pull over the email address as the Username returns the First and Last name formatted with a space, ideally I would like the username to be set to the front part of the email address. e.g.

First Name: Test
Last Name: Staff
Email of Apps account: teststaff@stuk.cloud

At the moment I have the username on CB and Joomla as the Apps email, ideally I would want it without the @stuk.cloud part?

Any Suggestions?

2. I would prefer the users to be able to simply enter in to the login fields the front part of their email address and the password to Google Apps for Education account without having to click on the Google+ button. Currently whatever google account they are logged in to on Chrome will try to log them in with that account, I can not be sure they will be logged in to google chrome with their stuk.cloud account.

Is this possible? I know that Joomla came with a Auth plugin designed for gmail where the login username and password could be entered for Google for the users to log in with that specific account.

I know once registered they will be able to do this expecally if there is a way to act on question 1.

3. I need to restrict those indviduals logging in through Google to only be those from Domain @stuk.cloud. This is going to be a closed site which means only those with a @stuk.cloud account should be able to sign in and register.

Is this possible? again the joomla auth plugin for gmail had the option to restrict the address.

See link about this Auth Plugin below:
"
"

4. When the site goes fully live there is going to be two types of user, Staff and Students. staff STUK accounts will be their first and last name combined at the front of the @stuk.cloud account, where students are going to have a number, e.g. 12345678@stuk.cloud. Would there be any way to direct what type of group they go in to based on this type of login scenario?


All feedback welcome.

Kind Regards,

Robert
Last edit: 8 years 6 months ago by knowhow.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48460
  • Thanks: 8280
  • Karma: 1443
8 years 6 months ago #280457 by krileon
Replied by krileon on topic CB Connect - Settings

1. When someone logs in using the Google Apps for Education Account I have to have the username field pull over the email address as the Username returns the First and Last name formatted with a space, ideally I would like the username to be set to the front part of the email address. e.g.

No, that's not possible unless you process the user profile information further using CB Auto Actions. Google provides a username as their G+ nickname so you shouldn't need to change the formatting at all. If you want first and lastname with no spaces you can also set this within CB Connect > Parameters > Google > Registration by setting "Username Format" to "[profile_firstname][profile_lastname]".

2. I would prefer the users to be able to simply enter in to the login fields the front part of their email address and the password to Google Apps for Education account without having to click on the Google+ button. Currently whatever google account they are logged in to on Chrome will try to log them in with that account, I can not be sure they will be logged in to google chrome with their stuk.cloud account.

Is this possible? I know that Joomla came with a Auth plugin designed for gmail where the login username and password could be entered for Google for the users to log in with that specific account.

I know once registered they will be able to do this expecally if there is a way to act on question 1.

No, that's not possible. Once that button is clicked it has left CB Connects hands and is up to Google and Google will use the account they're already logged into. The permission dialog offers them a chance to reject the authorization or login with a different account, but that's about it. If you want to use an Authorization plugin you can, but it has nothing to do with CB Connect as that's not what CB Connect is and will never function as such.

3. I need to restrict those indviduals logging in through Google to only be those from Domain @stuk.cloud. This is going to be a closed site which means only those with a @stuk.cloud account should be able to sign in and register.

Is this possible? again the joomla auth plugin for gmail had the option to restrict the address.

You'll have to use CB Auto Actions and act on the onBeforeUserRegistration trigger then check if the Google ID field has a value then validate the email using conditions in your auto action. If the condition isn't met use a Redirect action to redirect away.

4. When the site goes fully live there is going to be two types of user, Staff and Students. staff STUK accounts will be their first and last name combined at the front of the @stuk.cloud account, where students are going to have a number, e.g. 12345678@stuk.cloud. Would there be any way to direct what type of group they go in to based on this type of login scenario?

Yes, act on the after registration or after login trigger and condition against the social id fields then perform whatever action you like. For example a Usergroup action to give them a usergroup if they register with Google+.


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.

  • knowhow
  • knowhow
  • OFFLINE
  • Posts: 4
  • Thanks: 0
  • Karma: 0
8 years 6 months ago #280526 by knowhow
Replied by knowhow on topic CB Connect - Settings
Thanks for the support, is there any documentation on using Auto Actions? I have watched the videos but they currently dont touch on using Auto Actions on User Registration and I think this is a powerful tool that I can make do what I need it todo?

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48460
  • Thanks: 8280
  • Karma: 1443
8 years 6 months ago #280551 by krileon
Replied by krileon on topic CB Connect - Settings

Thanks for the support, is there any documentation on using Auto Actions? I have watched the videos but they currently dont touch on using Auto Actions on User Registration and I think this is a powerful tool that I can make do what I need it todo?

It's a tool so there's nothing to document beyond usecases. We have usecase videos below in addition to some tutorials in our tutorials section.

www.youtube.com/playlist?list=PLp0puRITgC7McQcw0Sli1qfSUQGwmflzi

www.joomlapolis.com/support/tutorials/107-use-cases


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