Google SSO Setup Instructions
January 17, 2026 ยท View on GitHub
How to configure
-
In the Google Cloud console, go to Menu > IAM & Admin > Create a Project.
https://console.cloud.google.com/projectcreate - In the Project Name field, enter a descriptive name for your project. (ex: Winter OAuth)
-
Click Create. Once the project is created, go to APIs & Services > Credentials.
https://console.cloud.google.com/apis/credentials - Click Create credentials, then select OAuth client ID from the menu.
- If prompted, click Configure consent screen. Once configured, go back to Credentials.
-
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(replacehttp://localhostwith your domain name)
- Click Create. Copy the Client ID and Client secret.
-
Add the configuration using one of the following ways:
- Using the
config/services.phpfile. See the Socialite Providers documentation for more information. - Using the environment variables:
GOOGLE_CLIENT_ID,GOOGLE_CLIENT_SECRET, andGOOGLE_REDIRECT_URI.
- Using the