Google Sign-In (oAuth2)

Follow this guide to get informed about the steps to set up Google Sign-in, and using credentials for extension configuration.

Steps to set up Google Sing-In

For using Google Sign-In, you need a Google account. If you allready have them, please continue with step 2.

  1. Open Google Cloud Console https://console.cloud.google.com/ and register a new account or login with your existing one.

  2. Create or select a Project

    • Click on Select Project → New Project

    • Give your project a name (e.g., Shopware SSO)

  3. Configure OAuth Consent Screen

    • Go to APIs & Services → OAuth consent screen.

    • Click on Get started.

    • Choose an app name and enter a support e-mail address, then click Next.

    • Choose External (if users outside your Google Workspace need to log in) or Internal, then click Next.

    • Enter a contact e-mail address and click Next.

    • Agree the Google terms and click Continue.

    • Click the Create button.

  4. Create OAuth 2.0 Credentials

    • Navigate to APIs & Services → Credentials → Create Credentials → OAuth client ID.

    • Choose Web application.

    • Add Authorized redirect URIs from your configured Google Sign-In service in Shopware. If you haven't configured it yet you can follow our guide at Configure Google Sign-In in Shopware extension.

  5. Copy your Client ID and Client Secret

    • You’ll need them for Shopware configuration.

Configure Google Sing-in in Shopware extension

For detailed information follow the guide for managing the SSO providers. See screenshot to be aware of the required fields for Google Sign-in implementation.

You can find the required credentials (clientId and clientSecret) in your created app integration of the Google account.

Don't forget to use the Check credentials button after you've entered and saved all credentials. With this button you can check if your connection could be established with Google.

If you use the Google Sign-In template, all required mapping fields are already pre-configured.

Google only returns the e-mail address and name of a user. So don't forgett to add the other fields in Shopware SSO mapping configuration with a default value. Otherwise there will be an exception on first login, because the fields street, zip, city and country are required fields in Shopware.

Last updated

Was this helpful?