How to create OAuth credentials?

  1. Login to your Google Account
  2. Go to https://console.cloud.google.com/apis/dashboard
  3. Select a project -> New Project -> Create
  4. Click "Enable APIs and Services" -> Search "Photos" and select "Photos Library API" -> Enable
  5. Goto "OAuth consent screen" tab -> Select "External" and create -> Fill the mandatory fields. Be sure to fill "photos-kodi-addon.onrender.com" as authorised domain -> Save and Continue
  6. Click "Add or remove scopes"
  7. Select the following scopes
    • ./auth/userinfo.email
    • openid
    • ./auth/photoslibrary.readonly
  8. Fill other mandatory fields as per your choice and "Save and Continue".
  9. Click "Add Users" and enter all the accounts which you want to use with the Kodi addon.
  10. Save and Continue -> Back to dashboard
  11. Open "Credentials" tab.
  12. Create credentials -> OAuth Client ID -> Web Application
  13. Set "https://photos-kodi-addon.onrender.com" as Authorized Javascript Origins
  14. Set https://photos-kodi-addon.onrender.com/auth/google/callback as Authorized redirect URIs -> Create
  15. Copy these client ID and secret to the Addon settings.

Checkout this Google Answer for more details.