Google SSO Setup Instructions

January 17, 2026 ยท View on GitHub

How to configure

  1. In the Google Cloud console, go to Menu > IAM & Admin > Create a Project.
    https://console.cloud.google.com/projectcreate
  2. In the Project Name field, enter a descriptive name for your project. (ex: Winter OAuth)
  3. Click Create. Once the project is created, go to APIs & Services > Credentials.
    https://console.cloud.google.com/apis/credentials
  4. Click Create credentials, then select OAuth client ID from the menu.
  5. If prompted, click Configure consent screen. Once configured, go back to Credentials.
  6. For the Application type, select Web application.
    • Authorized JavaScript origins: Leave this field blank.
    • Authorized redirect URIs: http://localhost/backend/winter/sso/handle/callback/google (replace http://localhost with your domain name)
  7. Click Create. Copy the Client ID and Client secret.
  8. Add the configuration using one of the following ways:
    • Using the config/services.php file. See the Socialite Providers documentation for more information.
    • Using the environment variables: GOOGLE_CLIENT_ID, GOOGLE_CLIENT_SECRET, and GOOGLE_REDIRECT_URI.