Google Drive
Access and manage files in Google Drive through Google's OAuth 2.0 integration.
Auth Model
User OAuth
Standard OAuth 2.0 authorization. A user grants consent and receives an access token. Authpipe handles refresh, rotation, and health monitoring automatically.
Connection Flow
// Get a valid credential — always fresh, zero latency const { credential } = await authpipe.getCredential({ provider: 'google-drive', tenantId: 'org_acme', userId: 'user_123', });
// Use the credential with the provider API const response = await fetch('https://api.example.com/data', { headers: { Authorization: `Bearer ${credential}` }, });
// Drop-in React component <ConnectButton provider="google-drive" onSuccess={(conn) => console.log('Connected!', conn)} />
Available Scopes
Permissions you can request when connecting to Google Drive.
https://www.googleapis.com/auth/drive Full access to all Google Drive files
https://www.googleapis.com/auth/drive.readonly Read-only access to all Google Drive files
https://www.googleapis.com/auth/drive.file Access to files created or opened by the app
https://www.googleapis.com/auth/drive.metadata.readonly Read-only access to file metadata
https://www.googleapis.com/auth/drive.appdata Access to application-specific data folder
https://www.googleapis.com/auth/drive.photos.readonly Read-only access to photos and videos in Google Drive
What Authpipe handles for Google Drive
OAuth Orchestration
PKCE, state validation, callback handling, and provider-specific quirks — all automatic.
Encrypted Vault
AES-256-GCM encryption with per-tenant key isolation. OAuth tokens, API keys, and webhook secrets — never exposed to the frontend.
Silent Refresh
Proactive token refresh before expiry. SDK returns from local cache with zero latency.
Health Monitoring
Scheduled checks detect revoked tokens and expired credentials before users notice.
More Storage providers
Amazon S3
Access Amazon S3 buckets and objects for cloud storage operations.
Cloudinary
Upload and manage images, videos, and other media assets with Cloudinary using API key authentication.
Firebase
Manage Firebase projects, hosting, and services using a Google service account access token.
imgix
Manage image sources and optimize media delivery with imgix using API key authentication.
Ready to connect Google Drive?
Get your first 100 connections free. Set up in minutes with our SDK.