SwissUpLabs Logo

Google API Configuration

To use Google login feature, you need to create Google application and link it to your site. Google will generate application id and secret, which you need to copy and set in Social Suite extension configuration.

1. To create Google application, please follow the next steps:

Google Developers Console

  • Enter Project Name and press Create button.

New Project

  • Go to Credentials page and switch to OAuth consent screen. Fill Application name and add your site domain to Authorized domains and press Save.

Credentials

  • Go back to Credentials page and in Create credentials dropdown select OAuth Client ID

OAuth Client ID

  • On the Create OAuth Client ID page select Web application type and fill the fields:

    • Name
    • In Authorized JavaScript origins enter your site url
    • In Authorized redirect URIs fill https://[your.domain]/sociallogin/social/login/id/google/

Create OAuth Client ID

If you are not sure about redirect URI, go to Magento admin

Stores > Configuration > Swissup Social Suite > Social login > Social Networks > Google

and copy generated value from Redirect URI field

Redirect URI

  • Press Create button

2. Add app id and app secret to Social Login configuration:

  • On Credentials page of your application, click on the application name in OAuth 2.0 client IDs list

    Credentials

    and copy Client ID and Client secret.

    Client ID and Secret

  • In Magento admin, go to Stores > Configuration > Swissup Social Suite > API Credentials > Google and insert Client ID and Client secret from your app.

    App Credentials

3. Now you can enable Google login feature in Stores > Configuration > Swissup Social Suite > Social login > Social Networks > Google

Edit this Page