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:
- Go to console.developers.google.com
and login with your account. Press
Create Project
and thenCreate
buttons.
- Enter
Project Name
and pressCreate
button.
- Go to
Credentials
page and switch toOAuth consent screen
. FillApplication name
and add your site domain toAuthorized domains
and pressSave
.
- Go back to
Credentials
page and inCreate credentials
dropdown selectOAuth Client ID
-
On the
Create OAuth Client ID
page selectWeb application
type and fill the fields:- Name
- In
Authorized JavaScript origins
enter your site url - In
Authorized redirect URIs
fillhttps://[your.domain]/sociallogin/social/login/id/google/
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
- 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 inOAuth 2.0 client IDs
listand copy
Client ID
andClient secret
. -
In Magento admin, go to
Stores > Configuration > Swissup Social Suite > API Credentials > Google
and insertClient ID
andClient secret
from your app.
3. Now you can enable Google login feature in
Stores > Configuration > Swissup Social Suite > Social login > Social Networks > Google