← Back to Blog
TUTORIALS

How to Set Up Google Login in GamePortalScript PRO

Follow this beginner-friendly Google Login tutorial to create OAuth credentials, add the correct callback URL and enable sign-in in GamePortalScript PRO.

How to Set Up Google Login in GamePortalScript PRO

Google Login gives players and approved administrators a faster way to sign in. This guide shows every step required to connect a GamePortalScript PRO website to Google Cloud without exposing your Client Secret.

Before you start: activate your PRO license and install the Login with Google feature from the PRO page in your CMS administrator panel.

Video tutorial

1. Open Google Cloud Credentials

Open Google Cloud Credentials, create or select a project, and configure the Google Auth Platform branding and audience when Google asks for them.

Google Cloud Credentials page with the Create credentials menu and OAuth client list

2. Create a Web application client

  1. Choose Web application as the application type.
  2. Enter a recognizable name, such as your website name.
  3. Under Authorized JavaScript origins, add only your website origin, for example https://your-domain.com. Do not add a path or trailing slash.
  4. Under Authorized redirect URIs, paste the exact callback URL displayed on the CMS PRO page. It must end in /google-callback.php.
  5. Click Create.
Completed Google OAuth Web application form with origin and redirect URI in the correct fields

3. Copy the credentials immediately

Copy both the Client ID and Client Secret from the confirmation dialog. Google displays the full Client Secret only when it is created, so save it securely before closing the dialog.

Google OAuth client-created dialog showing where to copy the Client ID and Client Secret
Security: never publish the Client Secret, include it in a screenshot, or send it to another website.

4. Enable Google Login in the CMS

  1. Return to Admin → PRO Active.
  2. Open the Login with Google configuration.
  3. Paste the Client ID and Client Secret.
  4. Add the Google email addresses that may enter the CMS administrator panel.
  5. Select Login with Google and save.
  6. Open your public /login page and test the Continue with Google button.

Common setup errors

redirect_uri_mismatch

The Authorized redirect URI in Google Cloud must match the CMS callback exactly, including HTTPS, www or non-www, and /google-callback.php.

The callback opens the homepage

Do not open google-callback.php directly. It works only after Google returns a valid authorization code and security state.

The administrator is logged in as a player

Add that exact verified Google email to the administrator-email list on the PRO page, save, and connect the account again.