Difference between revisions of "GoogleDrive"

Line 13: Line 13:
 
== Configure the consent screen ==
 
== Configure the consent screen ==
 
* Log in to with your Google account at https://console.cloud.google.com/
 
* Log in to with your Google account at https://console.cloud.google.com/
* On the menu with the 3 bars on the left select API & Services > Oath consent screen
+
* On the menu with the 3 bars on the upper left corner select API & Services > Oath consent screen
 
* Select EDIT APP next to Quickstart
 
* Select EDIT APP next to Quickstart
 
* Change the application name to something more suitable for your company/domain
 
* Change the application name to something more suitable for your company/domain
Line 25: Line 25:
 
== Whitelist your domain ==
 
== Whitelist your domain ==
 
* Log in to with your Google account at https://console.cloud.google.com/
 
* Log in to with your Google account at https://console.cloud.google.com/
* On the menu with the 3 bars on the left select API & Services > Credentials
+
* On the menu with the 3 bars on the upper left corner select API & Services > Credentials
 
* Click on OAuth client
 
* Click on OAuth client
 
* Under Authorized JavaScript origins add your control panel's domain and save.
 
* Under Authorized JavaScript origins add your control panel's domain and save.
 
* This may take 5 to 10 minutes to take effect.
 
* This may take 5 to 10 minutes to take effect.

Revision as of 21:12, 3 July 2020

Requirements

  • Your control panel must be accessible using a domain or subdomain.

Get your API key, client id and client secret

  • Go to https://developers.google.com/drive/api/v3/quickstart/js You only need to follow step 1. You do not need to install Python 2.4.
    • Click on "Enable the Drive API". This will give you the client id and client secret.
    • Click on "Create API key". This will give you the API key.
  • Log in to your control panel. Go to System > Settings > Google Drive.
    • Enter the client id, client secret and API key.
    • Enable it.
    • Click on games and select the games that have access to this feature.

Configure the consent screen

  • Log in to with your Google account at https://console.cloud.google.com/
  • On the menu with the 3 bars on the upper left corner select API & Services > Oath consent screen
  • Select EDIT APP next to Quickstart
  • Change the application name to something more suitable for your company/domain
  • DO NOT upload an application logo. If you do this it will require extra verification steps.
  • Click on Add scope and add Google Drive API ../auth/drive.file. Do not add any other scopes.
  • Under Authorized domains enter your primary domain (not a sub domain)
  • Under Application Homepage link enter your control panel url.
  • Under Application Privacy Policy link enter the link to your privacy policy. If you don't have one enter the control panel url.
  • Click on Save.

Whitelist your domain

  • Log in to with your Google account at https://console.cloud.google.com/
  • On the menu with the 3 bars on the upper left corner select API & Services > Credentials
  • Click on OAuth client
  • Under Authorized JavaScript origins add your control panel's domain and save.
  • This may take 5 to 10 minutes to take effect.
Retrieved from "https://help.tcadmin.com/index.php?title=GoogleDrive&oldid=2201"