How to setup your own OAUTH2 authentication

  1. Visit and sign in using your Google Account.
  2. Click create a project.
  3. Give the project a Project name.
  4. Click create. You will be taken to the Project's dashboard.
  5. On the left pane, select APIs under APIs & Auth.
  6. Select Drive API.
  7. On the top of the screen, click the Enable API. The Drive API should now be enabled.
  8. On the left pane, select Credentials under APIs & Auth.
  9. Click Create new Cliend ID.
  10. On the Create Client ID screen, select Installed Application. Click Configure consent screen.
  11. On the resulting screen, select an email address and enter a product name. Click save.
  12. You will be taken back to the Create Client ID screen. Selected Installed Application, select Other under Installed Application Type. Click Create Client ID.
  13. On the screen with the Create new Client ID, your credentials will appear. This is your Client ID and Client secret that you will need to enter into the XBMC / KODI plugin if using Login Type "your own OAUTH2".
  14. To authorize your login with the OAUTH2, visit the following URL, substituting [CLIENT_ID] with your client ID --[CLIENT-ID]

    so that it resembles