Map Google Drive to Owncloud

                                             Map Google drive to Owncloud

 

Using the Google Drive external storage in ownCloud, you can mount all or a subfolder of Google Drive.

This requires configuration through Google to get an app ID and app secret, as ownCloud registers itself as an app. All applications that access a Google API must be registered through the Google Cloud Console.

 

1.       You can use your existing Google account such as Groups, Drive, or Mail, or create a new one and log into the Google Cloud Console. After logging in click the Create Project button on the top right side.

 

Google Cloud Console

 

2.       Add a new project by clicking the + button on the top right side.

 Create Project

 

3.       Give your project a name, and either accept the default Project ID or create your own, then click the Create button.

Choose a name

4.       After your project is created, click on the notifications bell and select your project.

Notification bell

 

5.       Go to Api overview to select google’s API.

 

API

 

6.       Select Google Drive API

Google API

 

7.       Enable the Google Drive API

Enable

 

8.       You now must create your credentials.

Create Credentials

 

9.       First, select Web Browser and User data.

 

 Access type and Data

 

10.   The next screen that opens is Create OAuth 2.0 Client ID. Enter your app name.

 Access type and Data

 

Configure Authorisations

These authorisations are necessary to tell Google which source URI requests are allowed. You can configure multiple Authorized URIs if you wish to enable admin and personal access at the same time for different purposes.

Authorized Redirect URIs

To configure Authorized Redirect URIs, select one of the two possible URI Schemes.

https://<your domain>/index.php/settings/admin?sectionid=storage

 or

https://<your domain>/index.php/settings/personal?sectionid=storage

Authorized JavaScript Origins

This is just https://<your domain> which represents how you access your ownCloud server, where you see the login screen.

Configure to connect to Google Drive

1.      Login to your ownCloud account

Login in ownCloud

 

2.      Go to Storage in the Settings

Go to Storage in the Settings

3.      Enable external Storage

Enable external Storage

4.      Select Google Drive

Select Google Drive from dropdown menu

 

5.      The Google Drive App is enabled. Give the mount point a meaningful name.

Now you have your Google Drive App enabled

6.      Copy the Authorized Redirect URI from the browser

The URL from this page is the one you have to enter in the <strong>Authorized Redirect URIs</strong>

7.      Enter it the Google Drive Console here

Client ID

8.      Choose a project name for the consent screen.

Choose a Project Name

9.      Download the credentials as JSON file.

Download your Credentials

 

Here is an example output:

Credentials

10.  Client ID and Client Secret

Enter the Client ID and Client Secret in the ownCloud Google Drive mount screen and click Grant Access. Now you have everything you need to mount your Google Drive in ownCloud. Your consent page appears when ownCloud makes a successful connection.

Click Allow when the consent screen appears.

Grant Access

11.  Success

You are finished when you see the green light confirming a successful connection.

All Green

 

12.  Files View

Go to your files view. You will see the newly mounted Google Drive.

Your Google Drive Folder

 

 

 

 

 

  • 0 Usuários acharam útil
Esta resposta lhe foi útil?

Artigos Relacionados

How to share particular folder/file from mapped google drive to user.

                                              How to share particular file of Mapped google drive...

Powered by WHMCompleteSolution