google / google/GoogleSignIn-iOS

Switching accounts results in a 403: Delegation denied error

Đang mở
#295 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
bug triage
Ngôn ngữ chính
Objective-C
Star
750
Fork
282
Merge trung bình
2 ngày 15 giờ
Pull request đã merge (30 ngày)
9

Mô tả

**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 "
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

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 "
6. Logout and login with Google account 1
7. Observe that the app received a new auth token and account 1's email address
8. 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.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.