This guide shows you how to integrate Google as a login option for your application with Entrypage. Once you’re done, your users can sign in with their Google accounts, making the sign-in process quick and easy.

Prerequisites:

Step 1: Configuring Google

To integrate Google login with Entrypage, the first step is to configure a Google OAuth Client in the Google Cloud Console.

  1. Create or Select a Project: Create or Select a Project: In the Google Cloud Console, create a new project or select an existing one. A project serves as a container for all your API settings.
  2. Enable the IAM Service Account Credentials API: Navigate to APIs & Services > Library and enable IAM Service Account Credentials API
  3. Configure the OAuth Consent Screen: This is the screen users see when they’re asked to grant your application access to their data.
    • In the left-hand menu, click OAuth Consent Screen.
    • Go to the Data Access section and click Add or remove scopes.
    • Enable the openid, .../auth/userinfo.email, and .../auth/userinfo.profile scopes.
  4. Create an OAuth Client:
    • Navigate to the Credentials section and click Create Credentials > OAuth client ID.
    • Set the Application type to Web application.
    • Give your application a name.
    • Add an Authorized redirect URI in this format: https://{your-auth-server}/account/redirect. For example, https://auth.yourserver.com/account/redirect.
    • Click “create” and copy the client ID and client secret that Google provides. You will use these in the next step to configure the connection in Entrypage.

Step 2: Configure the Connection in Entrypage

Sign in to your account at https://portal.entrypage.io.

  1. Go to Settings > External Identity-Providers and enable the Google connection.
  2. Paste the Client ID and Client Secret you copied from Google, then click Save.
  3. Navigate to the Clients section and select the client where you want to enable Google authentication.
  4. Scroll down to the Authentication methods section, enable Google, and then click Update.

Testing and Troubleshooting

Now, navigate to the login page for that client. You should see a Sign in with Google button. Test it to confirm the configuration works correctly.

If you run into any trouble, double-check your Client ID, Client Secret, and Authorized redirect URI for any typos. You can also review the Diagnostics section for helpful information or check the OAuth Consent Screen settings to ensure the correct scopes are enabled.