Simple Google Apps authentication v1.0

Release Notes

  • English and spanish language
  • Automatic user creation
  • Login with username or username@domain
  • Nice work. This will make it much easier for Elgg to be supported in Enterpise set-ups that are already using Google Apps.

    Just went through the code, I don't think you have disabled password settings edit on Elgg's side. It will be a lot more complete if you can redirect users to the Google Apps user settings page or disable the password fields and link it to the Google Apps page where they can change it.

  • Hi Shyam, thanks for your comments. About password fields and password recovery, you're right, it would be more complete doing the redirect, however, for this version, the idea was to use Gapps authentication for some users and standard authentication for some other, so I needed the elgg password field and elgg password recovery system.

    For next release, I think I'll include what you suggest as an admin setting so password fields and redirect to Google page can be enabled or disabled at any time.

    Thanks again. Regards!

  • Ah, I did not think of that possibility. Showing users the right password change page depending on user type would be a nice thing to have.

  • Hmm...this is crashing my site as soon as I enable the plug in unfortunately.  Any ideas why?

  • Sorry for late reply guys but I've been very busy lately.


    @Dan Leighton Please make sure that the zend code is being included properly in the plugin. You can change the include route and print some debug messages to find out if zend functions are loading, the rest is a very simple code, so there shouldn't be any complex problems about it.

  • my system crashes too, after i activate the plugin. Here's the server error log:

     PHP Fatal error:  require_once(): Failed opening required 'Zend/Exception.php' (include_path='.:/usr/share/php:/usr/share/pear') in ...

    Pear is correctly installed, but zend is in the directory called zend, not Zend. Therefore, I tried to rename it but it didn't work.

    any suggestions?

  • @earthling - I can't offer you a proper solution but a workaround is to create a symbolic link to called Zend that points to the zend directory. I did this for every subdirectory in the zend directory.


    @pablo - the plugin is enabled, I changed the settings to my domain. I don't seem to be able to login using my gapps login details. Any suggestion for what I can do or how to debug this?



  • @pablo - sorted - the problem had nothing to do with your plugin - my name has 3 characters in it and the default minimum in elgg is 4. Changing the minimum by setting $CONFIG->minusername = 2; in settings.php fixed the problem


  • Great news guys, it's a relief to know that the plugin is not crashing. Regards!

  • I am getting this error Fatal error:

    Call to undefined function elgg_register_event_handler() in /home/mysite/public_html/subdomain/elgg/mod/gappslogin/start.php on line 3

  • Hi Pablo, installing your plugin on a fresh elgg install I encountered the same problem of earthling: I've solved moving the directory zend from




    I know it's not a suitable solution for many hosting platforms, but worked for me.

    I'm using Elgg 1.8, so I see some warning about deprecated function, are you working on an update of this plugin?

  • Hi, I am having users without gapps name who registered earlier with the sAMAccount name. With the Gapps mail IDs. The user name is different from the gapps name. I am facing the issue, when the user login with the mail ID, the alert message says invalid login, but user logged in. can you help me on this 


    Thanks in Advance

Pablo Borbón

Developer and consultant engineer for Consultora Nivel7 Ltda.


  • Category: Authentication
  • License: GNU General Public License (GPL) version 2
  • Updated: 2014-11-17
  • Downloads: 1292
  • Recommendations: 1

Other Projects

View Pablo Borbón's plugins