Switching accounts results in a 403: Delegation denied error
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 35/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- ios, swift
- 领域
- authentication, mobile
调研方向
从账户切换流程和 GIDSignIn.sharedInstance.restorePreviousSignIn 开始,比较注销和登录前后的 token 与会话状态。在 iOS 16.2 上复现 Gmail 请求序列;完成标准是从账户 1 切换到账户 2 后,后续的 Google API 调用使用账户 2,且不需要重启应用。
由索引模型根据 Issue 内容生成。
描述
Describe the bug
I'm running into an odd bug where I can can successfully switch between multiple Google accounts (say from account 1 to account 2), but Gmail (or any other Google service) believes I'm still logged in account 1.
To Reproduce
Steps to reproduce the behavior:
-
Login with Google account 1
-
Observe that the API calls to Gmail are successful
-
Logout and login with Google account 2
-
Observe that the app received a new auth token and account 2's email address
-
Any call to Gmail will now result in a "403: Delegation denied error for <Account 1>"
-
Kill and restart the app
-
The app will restore the previous session without user interaction using
GIDSignIn.sharedInstance.restorePreviousSignIn -
Observe Google account 2's session was restored and now all calls to Gmail are successful
-
Login with Google account 1
-
Observe that the API calls to Gmail are successful
-
Logout and login with Google account 2
-
Observe that the app received a new auth token and account 2's email address
-
Any call to Gmail will now result in a "403: Delegation denied error for <Account 1>"
-
Logout and login with Google account 1
-
Observe that the app received a new auth token and account 1's email address
-
Calls to Gmail for account 1 are successful
Expected behavior
I expect to be able to log out and log in with a different account successfully
Screenshots
None.
Environment
- Device: Simulator and iPhone 12
- OS: iOS 16.2
- Browser: Swift app
Additional context
Add any other context about the problem here.
- 主要语言
- Objective-C
- 星标
- 751
- 派生
- 282
- 平均合并
- 4 天 20 小时
- 30 天内合并 PR
- 11
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
google/GoogleSignIn-iOS 的其他 Issue
-
enhancement triage
难度 2/5 1-3 小时 新手友好度 72/100
google/GoogleSignIn-iOS#621 ·
-
enhancement triage
难度 2/5 1-3 小时 新手友好度 76/100
google/GoogleSignIn-iOS#620 ·
-
难度 2/5 1-3 小时 新手友好度 68/100
google/GoogleSignIn-iOS#440 · 4 条评论 · 2 个 reaction ·
-
enhancement triage
难度 4/5 3-5 天 新手友好度 48/100
google/GoogleSignIn-iOS#611 ·
-
难度 4/5 3-5 天 新手友好度 45/100
google/GoogleSignIn-iOS#607 ·
查看 google/GoogleSignIn-iOS 的全部 Issue
相似的 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 84/100
-
难度 2/5 1-3 小时 新手友好度 72/100
noah-nuebling/mac-mouse-fix#2054 ·
-
难度 1/5 1 小时以内 新手友好度 92/100
obsproject/obs-studio#13918 ·
-
难度 2/5 1-3 小时 新手友好度 88/100
HigherOrderCO/Bend#842 · 2 条评论 ·