2.1.Get the API credentials From the Google Developers Console ↑ Back to Top
Google is one of the very well-known sites on the web. Generally, most of the users have a Google account so they can log in very easily to the Magento 2 store just by clicking the Google Login button once. To enable this feature admin needs to get the client ID and the client secret key from the Google Developers console.
To get the API credentials
- Go to the https://console.developers.google.com link.
- Enter the login credentials.
The page appears as shown in the following figure:
- Click the Create Project button.
The page appears as shown in the following figure:
- Click the Create button.
The New Project page appears as shown in the following figure:
- In the Project Name box, enter the required name of the project.
- Click the Create button.
- On the top bar, click the arrow button next to the project name.
The Select page appears as shown in the following figure:
- Click the required project link.
The page appears as shown in the following figure:
- In the right panel, click the 0Auth consent screen tab.
The page appears as shown in the following figure:
- In the Product name shown to users box, enter the required product name.
- Click the Save button.
The Credentials page appears as shown in the following figure:
- Click the Create credentials button.
The menu appears as shown in the following figure:
- Click 0Auth client ID.
The Create client ID page appears as shown in the following figure:
- Under Application Type, click to select the Web application option.
The page appears as shown in the following figure:
- Under Authorized redirect URls, enter https://www.example.com/index.php/cedvendorsociallogin/google/connect/ in the box.
- Click the Create button.
The 0Auth client dialog box appears as shown in the following figure:
- Click the Copy icon to copy the client ID and the client secret key respectively and keep it safely to paste them in the Google Configuration Settings page available in the Magento 2 Admin panel.
- Click the OK button.
×