Switching accounts results in a 403: Delegation denied error
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 35/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- ios, swift
- 領域
- authentication, mobile
調査の方向性
アカウント切り替えフローと GIDSignIn.sharedInstance.restorePreviousSignIn から始め、ログアウトとログインの前後でトークンとセッションの状態を比較します。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
- 平均マージ
- 2日 15時間
- マージ済み PR(30日)
- 9
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- 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 件 ·
-
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
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
-
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 件 ·