-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
feat(degoo): token improvement #1149
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Signed-off-by: Caspian <app@caspian.im>
Signed-off-by: Caspian <app@caspian.im>
Signed-off-by: Caspian <app@caspian.im>
|
完善自动刷新功能:
总结:当前驱动有基础的自动Token管理,但不够完善,这就是为什么遇到429错误的原因。配置一个有效的Token,并改进RefreshToken的持久化 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
感谢提交,实际测了下,将 Access Token 改乱后,Refresh Token 有点问题,刷新完后不会使用获取到的 Access Token 进行新的请求
看了下,Headers 中的 Authorization 头部已经是刷新后获取到的没错,但请求的 Body 部分没有更新。看起来是请求在构建时就已经生成了 Body,之后虽然刷新了 Token,但并没有将新的 Token 更新到 Body 中,导致请求仍然使用了旧的 Token
Signed-off-by: Caspian <app@caspian.im>
|
更新了 util.go |
Signed-off-by: Caspian <app@caspian.im>
Signed-off-by: MadDogOwner <xiaoran@xrgzs.top>
|
有 Refresh Token 的话,账号密码应该可以改成可选了吧? |
是这么个理 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.
Signed-off-by: MadDogOwner <xiaoran@xrgzs.top>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
测试了下,token 可以正常 refresh
* Update driver.go Signed-off-by: Caspian <app@caspian.im> * Update meta.go Signed-off-by: Caspian <app@caspian.im> * Update util.go Signed-off-by: Caspian <app@caspian.im> * Update util.go Signed-off-by: Caspian <app@caspian.im> * Update util.go Signed-off-by: Caspian <app@caspian.im> * Update util.go Signed-off-by: MadDogOwner <xiaoran@xrgzs.top> * make account optional * ensure username and password Signed-off-by: MadDogOwner <xiaoran@xrgzs.top> --------- Signed-off-by: Caspian <app@caspian.im> Signed-off-by: MadDogOwner <xiaoran@xrgzs.top> Co-authored-by: MadDogOwner <xiaoran@xrgzs.top>
Enhanced Degoo Driver Token Management
Technical Improvements
Token Lifecycle Management
Bug Fixes
Files Modified