fix: correct Feishu OAuth authentication and web download#181
Open
coffeeeeffoc wants to merge 10 commits intoWsine:mainfrom
Open
fix: correct Feishu OAuth authentication and web download#181coffeeeeffoc wants to merge 10 commits intoWsine:mainfrom
coffeeeeffoc wants to merge 10 commits intoWsine:mainfrom
Conversation
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Add io.LimitReader (10MB limit) to prevent memory exhaustion - Use package-level defaultClient instead of per-request clients - Add input validation for code and refreshToken parameters - Add tests for ExchangeCodeForToken and RefreshUserToken Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The lark SDK's WithUserAccessToken is a method-level option, not client-level. This change updates all API methods that need user identity to pass the stored userAccessToken as a method option. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Fix OAuth token request: use app_id in body, client_secret via HTTP Basic Auth - Fix scope from drive:file:readonly to drive:drive:readonly for wiki access - Fix web download handler to use user token from config file - Use exec.Command instead of os.StartProcess for browser launch Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
app_idin body,client_secretvia HTTP Basic Auth per Feishu APIdrive:file:readonlytodrive:drive:readonlyfor wiki download accessexec.Commandinstead ofos.StartProcessTest plan
feishu2md login- browser should auto-open OAuth page🤖 Generated with Claude Code