You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- After completing permission application, publish application to enterprise
95
+
- Record the app's `Client ID` and `Client Secret`
96
+
97
+
### Permission Description
98
+
99
+
-**`drive:drive`**: This is the core permission for accessing cloud documents, allowing the app to read user's documents, spreadsheets, slides, and other files
100
+
-**`space:document:retrieve`**: Used to access documents in knowledge bases and spaces, expanding document access scope
101
+
-**`offline_access`**: Allows the app to access resources when user is offline, which is crucial for background sync tasks
102
+
103
+
## Feishu App Permission Configuration
104
+
105
+
### Required Permissions
106
+
107
+
The Feishu connector requires the following permissions to function properly:
- After completing permission application, publish application to enterprise
133
+
- Record the app's `Client ID` and `Client Secret`
134
+
135
+
### Permission Description
136
+
137
+
-**`drive:drive`**: This is the core permission for accessing cloud documents, allowing the app to read user's documents, spreadsheets, slides, and other files
138
+
-**`space:document:retrieve`**: Used to access documents in knowledge bases and spaces, expanding document access scope
139
+
-**`offline_access`**: Allows the app to access resources when user is offline, which is crucial for background sync tasks
-**Auto-refresh**: Automatically refreshes access_token when expired using refresh_token
333
+
-**Expiration Checking**: Checks expiration times for both access_token and refresh_token
334
+
-**Smart Handling**: Stops synchronization and logs errors if both tokens are expired
335
+
-**Data Persistence**: Automatically saves refreshed token information to datasource configuration
245
336
246
337
### Special Type Processing
247
338
@@ -251,9 +342,12 @@ The connector automatically searches folder contents recursively, ensuring all d
251
342
## Important Notes
252
343
253
344
1.**Authentication Method Selection**: You must choose either OAuth authentication or user access token authentication, they cannot be used simultaneously
254
-
2.**OAuth Recommended**: OAuth authentication is recommended for higher security and automatic token refresh support
345
+
2.**OAuth Recommended**: OAuth authentication is recommended for higher security, automatic token refresh, and expiration time management
255
346
3.**Token Management**: When using user access tokens, manual token expiration management is required
256
-
4.**Permission Requirements**: Feishu apps need `drive:read` permission to access cloud documents
347
+
4.**Permission Requirements**: Feishu apps need to apply for and obtain the following permissions:
348
+
-`drive:drive` - Cloud document access permission
349
+
-`space:document:retrieve` - Knowledge base retrieval permission
350
+
-`offline_access` - Offline access permission
257
351
5.**API Limits**: Pay attention to Feishu API call frequency limits
258
352
259
353
## Troubleshooting
@@ -262,13 +356,33 @@ The connector automatically searches folder contents recursively, ensuring all d
262
356
263
357
1.**Authentication Failure**
264
358
- Check if `client_id` and `client_secret` are correct
265
-
- Confirm if Feishu app has `drive:read` permission
359
+
- Confirm if Feishu app has applied for and obtained the following permissions:
360
+
-`drive:drive` - Cloud document access permission
361
+
-`space:document:retrieve` - Knowledge base retrieval permission
362
+
-`offline_access` - Offline access permission
363
+
- Check OAuth redirect URI configuration
364
+
- Confirm if application has been published to enterprise
266
365
267
366
2.**Token Expiration**
268
-
- OAuth Authentication: System automatically refreshes tokens
367
+
- OAuth Authentication: System automatically refreshes tokens, check if refresh_token is also expired
269
368
- User Access Token: Manual token updates required
270
369
271
370
3.**Sync Failure**
272
371
- Check network connectivity
273
372
- Confirm if token is valid
274
373
- View system logs for detailed error information
374
+
- Check expiration times for both tokens
375
+
376
+
4.**OAuth Redirect Errors**
377
+
- Confirm redirect URI in application configuration
378
+
- Check if network environment supports dynamic URI construction
379
+
- View redirect URI construction process in system logs
380
+
381
+
### Log Debugging
382
+
The connector provides detailed logging, including:
0 commit comments