To allow users to create and edit Office documents with Google, please follow these steps:
1. Go to https://console.developers.google.com/apis/library
2. Search for Google Drive API
, select it and click to Manage
it.
3. Make sure the API is enabled (click ENABLE
).
4. Under Credentials
, click to Create Credentials
→ OAuth Client ID
.
Web application
as the application type.Authorized JavaScript origins
type your FileRun website domain (if FileRun is installed at “http://www.mysite.com/filerun” type “http://www.mysite.com”).Authorized redirect URIs
type “http://www.mysite.com/filerun/?module=custom_actions&action=google&method=getToken”. Replace “http://www.mysite.com/filerun/
” accordingly.
4. Now that you added a Client ID
, you should see it in the OAuth 2.0 client IDs
list on the Credentials
page.
5. Click the name of your created client ID.
6. Copy both the Client ID
and Client secret
and configure them inside Control Panel
> Files
> Plugins
> Google Docs Editor
.
7. Clear your browser's cache and reload FileRun in your browser to see the new options.
Note: If the application is set to Testing
instead of Production
under OAuth consent screen
you will need to add test users and these users will be the only users that can use this integration.