Adding a Google Drive account

You can link your Google Drive account in order to see all your files in one place.

The Google Drive support in myDrive lets you interact with your Google Drive files and folders just like you would with normal myDrive files/folders. For example you can upload files, download files, create folders, stream videos, and much more.

In order to add your Google Drive account you must complete the following steps.

Navigate to the Google API console.

Click the ‘Create Project’ button.

Screenshot from 2020-12-29 18-04-04.png

Add a project name,

After entering a name select create,

Screenshot from 2020-12-29 18-04-04.png

After creating the project you then need to add the API.

Click “Enable APIS and services”

Screenshot from 2020-12-29 18-07-39.png

Search for the Google Drive API.

Click on the Google Drive API and then select “Enable”

Screenshot from 2020-12-29 18-07-39.png

Next select “OAuth Consent Screen” on the left side.

Add an app name and support email, this can just be your personal email address.

Screenshot from 2020-12-29 18-07-39.png

Scroll down and add the authorized domains.

This is the domain or URL that you use to access your myDrive website. For example if you access myDrive through “http://localhost.com” you would put the following URL in authorized domains “localhost.com”.

For the developer contact information you can again add your personal email address.

Screenshot from 2020-12-29 18-07-39.png

For the scopes section you can just leave everything default and click “save and continue”.

On the test users page you must add a user, this user must be the google account that you are using for Google Drive.

Select “save and continue” again, after that the consent screen should be created.

Screenshot from 2020-12-29 18-07-39.png

Next navigate to “Credentials” on the left side.

Select “OAuth client ID”.

Screenshot from 2020-12-29 18-07-39.png

Select “Web application” and give the client a name.

Again the the authorized URIs, this is the URL/link to the website that you use for myDrive. For example if I am using “http://localhost.com” I would enter that here.

Authorized redirect URIs is what myDrive uses to tell once you finished entering all the Google Drive information, this is again your URL/link and it must end in ‘/add-google-account’.

For example if I have “http://localhost.com” I would enter “http://localhost.com/add-google-account”.

Screenshot from 2020-12-29 18-07-39.png

After that you should be presented with your client ID and client secret, if you navigate away and need these keys again you can go to credentials and click on the created client ID.

This ID and secret is what you will enter into myDrive in order to access your Google Drive account.

Screenshot from 2020-12-29 18-07-39.png

Next go to settings inside of myDrive, go to Storage account on the left side and then select ‘Add’ on the Google Drive section.

You will then enter your account details and click ‘Add Account’ When finished.

Screenshot from 2020-12-29 18-07-39.png

You will then be asked to login to your Google Account.

You will also be asked to accept some permissions, these permissions are needed in order for myDrive to access your Google Drive files.

Screenshot from 2020-12-29 18-07-39.png

You may get the following scary warning.

This warning is okay, this is just because you haven’t verified this app.

Click ‘Show advanced’ and then select ‘Go to localhost.com (unsafe)’.

After that you should see a box where you can select ‘Add Google Account’, add the Google Account and then select ‘Go back’ to go back to the homepage.

Screenshot from 2020-12-29 18-42-55.png

You should now be able to access all your Google Drive files and folders.

You can select the storage selector at the top left in order to switch what storage account you are uploading too. Select ‘Google Drive’ in order to upload files and folders to Google Drive.