Google Drive
Google Drive is a web-based file storage and synchronization service developed by Google.
Authentication Types
Google Drive supports 2 authentication methods:
-
OAuth - Create your own Google Cloud OAuth app. Every user connects with their Google account.
- Pros: Full control, per-user tracking, production-ready
- Cons: Requires Google Cloud Console setup
-
Instant OAuth - Use Webrix's pre-configured Google app for the fastest setup.
- Pros: Fastest setup, no configuration needed
- Cons: Limited scopes, not recommended for production
Setting up OAuth
-
Create a new project or select an existing one
-
In the left sidebar, go to APIs & Services → OAuth consent screen
-
Configure your OAuth consent screen with the required information
- On the Scopes page, add the Drive scopes you need:
https://www.googleapis.com/auth/drive(full access)https://www.googleapis.com/auth/drive.readonly(read-only)https://www.googleapis.com/auth/drive.file(files created by the app)
-
Go to APIs & Services → Credentials
-
Click Create Credentials → OAuth client ID
-
Select Web application
-
Under Authorized redirect URIs, add the Redirect URL from Webrix
-
Click Create
-
Copy the Client ID and Client Secret
-
In Webrix, paste the Client ID and Client Secret
-
Select the same scopes you configured
-
Click Save Changes
Note: Enable the Google Drive API in APIs & Services → Library if not already enabled.