Table of contents


Official Content

For X Evolution 3 upgrade 4 or upper, see GAM Google Authentication Type.

Using GeneXus Access Manager (GAM) you can authenticate on Google site, just by following these steps:

1. You need to create a "Google client application" in Google site and obtain Client Id and Client Secret for that application.

Go to the following link:

2. There go to API Access, as shown in the figure:


3. Then you need to create an OAuth Application. Fill in a Product Name and press next:


4. In Client Id Settings check box, select "Application Type" = Web Application.

5. Finally, you need to go through "Edit Settings", and change the Redirect URIs. There you may specify the complete URI of your application, including the object, as the figure shows:



  • In case of java:
  • In case of NET:
  • In case of Ruby:

6. In GeneXus, define a new Authentication Type = Google using the GAM Backoffice.

Enter Cliend Id and Client Secret obtained in Google site.


Important note:

In case of java and .NET you need to enter the complete site URL in CallBack URL. That is, in the example:
In case of Ruby you need to specify in SITE URL only the server, not the complete URL, for example:

How to login using Google account in WEB applications

In case of Web Applications, the GamExampleLogin object (which is part of the GAM example library) includes automatically a button by which the user can login to Google.
This button is included dynamically, as the Google Authentication Type is detected to be defined in the GAM Repository.


The following code is associated to the "Google" Button:

Event &ButtonGoogle.Click

How to login using Google account in SD applications

The following code is used for that purpose:

Event 'Google'
 SDActions.LoginExternal("google", &User, &Password)

See Also

GAM Facebook Authentication Type
GAM - Twitter Authentication Type
Additional Scope Property for GAM Google / Facebook Authentication Types

Last update: November 2023 | © GeneXus. All rights reserved. GeneXus Powered by Globant