Credentials
OAuth Setup
Configure OAuth credentials for external services
OAuth Setup
OAuth allows NodeDrop to access external services on your behalf without storing your password.
How OAuth Works
- You authorize NodeDrop to access a service
- The service provides an access token
- NodeDrop uses the token for API requests
- Tokens are automatically refreshed
Setting Up OAuth Credentials
Google (Gmail, Sheets, etc.)
- Go to Google Cloud Console
- Create a new project or select existing
- Enable the APIs you need (Gmail, Sheets, etc.)
- Go to Credentials > Create Credentials > OAuth Client ID
- Select Web Application
- Add authorized redirect URI:
https://your-nodedrop-url/oauth/callback/google - Copy Client ID and Client Secret
- In NodeDrop, create a Google OAuth credential with these values
GitHub
- Go to GitHub Developer Settings
- Click New OAuth App
- Set Authorization callback URL:
https://your-nodedrop-url/oauth/callback/github - Copy Client ID and Client Secret
- Create credential in NodeDrop
Generic OAuth2
For services not specifically supported:
- Find the service's OAuth documentation
- Create an OAuth app in their developer portal
- Note the authorization and token URLs
- In NodeDrop, create a Generic OAuth2 credential:
| Field | Description |
|---|---|
| Client ID | From the service |
| Client Secret | From the service |
| Authorization URL | Service's auth endpoint |
| Token URL | Service's token endpoint |
| Scopes | Required permissions |
Authorizing Credentials
After creating an OAuth credential:
- Click Connect or Authorize
- You'll be redirected to the service
- Log in and grant permissions
- You're redirected back to NodeDrop
- The credential is now active
Token Refresh
OAuth tokens expire. NodeDrop automatically:
- Detects expired tokens
- Uses refresh tokens to get new access tokens
- Retries failed requests with new tokens
Troubleshooting
Authorization Failed
- Verify Client ID and Secret are correct
- Check redirect URI matches exactly
- Ensure required APIs are enabled
Token Expired
- Re-authorize the credential
- Check if refresh token was revoked
- Verify scopes haven't changed
Permission Denied
- Review requested scopes
- Check service-side permissions
- Ensure account has access to resources
Security Notes
- OAuth tokens are encrypted like other credentials
- Refresh tokens allow long-term access
- Revoking access in the service invalidates tokens
- Use minimum required scopes