Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Switching accounts results in a 403: Delegation denied error

オープン
#295 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
ios, swift

調査の方向性

アカウント切り替えフローと GIDSignIn.sharedInstance.restorePreviousSignIn から始め、ログアウトとログインの前後でトークンとセッションの状態を比較します。iOS 16.2 で Gmail のリクエストシーケンスを再現します。アカウント 1 からアカウント 2 に切り替えると、その後の Google API 呼び出しでアカウント 2 が使用され、アプリの再起動が不要になれば完了です。

索引モデルが issue の本文から書いたものです。

説明

bug triage

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:

  1. Login with Google account 1

  2. Observe that the API calls to Gmail are successful

  3. Logout and login with Google account 2

  4. Observe that the app received a new auth token and account 2's email address

  5. Any call to Gmail will now result in a "403: Delegation denied error for <Account 1>"

  6. Kill and restart the app

  7. The app will restore the previous session without user interaction using GIDSignIn.sharedInstance.restorePreviousSignIn

  8. Observe Google account 2's session was restored and now all calls to Gmail are successful

  9. Login with Google account 1

  10. Observe that the API calls to Gmail are successful

  11. Logout and login with Google account 2

  12. Observe that the app received a new auth token and account 2's email address

  13. Any call to Gmail will now result in a "403: Delegation denied error for <Account 1>"

  14. Logout and login with Google account 1

  15. Observe that the app received a new auth token and account 1's email address

  16. 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

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

google/GoogleSignIn-iOS のほかの issue

google/GoogleSignIn-iOS の issue をすべて見る

似ている issue

Objective-C の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。