This document outlines how to create your own OAuth2 client ID and client secrets so that you can interact with the Google Photos APIs.
-
Go to https://cloud.google.com/cloud-console and log into your Google account.
-
Click on the "Console" button:
-
Click on the "Select Project" button and create a new project with any name:
-
Wait for the project to be created. Then, select your project again:
-
Type in "Photos Library Api" in the search box, select "Photos Library Api", and click on "Enable":
-
Create a new OAuth2 Consent Screen by going to to the APIs and Services tab, selecting OAuth Consent Screen, creating an External API, and fill in the details:
-
We don't need special scopes. So we can click on the Save and Continue button in the special scopes page:
-
In the Test Users page, click on Save and Continue. We don't need to add test users since we will publish the app:
-
Now, publish the app:
-
Create the Client IDs and client secrets by going to the "Credentials" tab, clicking on "Create Credentials", select "OAuth Client ID", selecting "Web Application", and adding http://localhost:4200/auth/login/callback in the authorized redirect uri:
-
Finally, click on the Create button. A dialog will appear with your Client ID and Client secrets. Copy the client ID and client secrets in a note pad.