Switching accounts results in a 403: Delegation denied error
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 35/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- ios, swift
- Ambito
- authentication, mobile
Direzione di ricerca
Inizia con il flusso di cambio account e GIDSignIn.sharedInstance.restorePreviousSignIn, confrontando lo stato del token e della sessione prima e dopo il logout e il login. Riproduci la sequenza di richieste Gmail su iOS 16.2; il lavoro è completato quando il passaggio dall’account 1 all’account 2 fa sì che le chiamate successive a Google API utilizzino l’account 2 senza richiedere il riavvio dell’app.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- Objective-C
- Stelle
- 751
- Fork
- 282
- Merge medio
- 2g 15h
- PR unite (30g)
- 9
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di google/GoogleSignIn-iOS
-
enhancement triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
google/GoogleSignIn-iOS#621 ·
-
enhancement triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
google/GoogleSignIn-iOS#620 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
google/GoogleSignIn-iOS#440 · 4 commenti · 2 reazioni ·
-
enhancement triage
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
google/GoogleSignIn-iOS#611 ·
-
Remove Cocoapods Support Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
google/GoogleSignIn-iOS#607 ·
Tutte le issue di google/GoogleSignIn-iOS
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
-
macOS下查找brew::ncurse失败 Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
noah-nuebling/mac-mouse-fix#2054 ·
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 92/100
obsproject/obs-studio#13918 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
HigherOrderCO/Bend#842 · 2 commenti ·