google / google/GoogleSignIn-iOS
iOS - Google Sign in - Revoked IDToken remains active until the token expire
- 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ả
I'm using - GoogleSignIn (7.1.0) framework in my iOS application and I can see that the token seems valid until the expiration date is reached. I use the accepted approach as called has Previos Sign In and calling restorePrevios Sign in, but the received user object still contains the user's data. I have tried Apple and Facebook login, but both of them revoked the access as soon as the Application permission was revoked, only Google keep sending it.
The code snippet, I used:
(if GIDSignIn.sharedInstance.hasPreviousSignIn() {
GIDSignIn.sharedInstance.restorePreviousSignIn { user, error in)
}
})
I have also tried calling https://oauth2.googleapis.com/tokeninfo?id_token=\(idToken) which responded 200 after 15 minutes of the permission revoke, so it looks like the token is fully valid until the expiration data
It's important for us that the user can still access his account for some time and will be deleted in about 2 hours after the token creation, which is super annoying.
I have attached a screenshot about the GIDGoogleUser, which contains all the data, it was about 5 minutes after the permission revoke.

Hướng dẫn đóng góp
Hướng nghiên cứu
Bắt đầu với hành vi của GoogleSignIn 7.1.0 liên quan đến GIDSignIn.sharedInstance.hasPreviousSignIn() và restorePreviousSignIn, sau đó so sánh với endpoint tokeninfo sau khi thu hồi quyền. Tái hiện độ trễ được báo cáo và xác định xem SDK có cung cấp cách được hỗ trợ để phát hiện việc thu hồi trước khi token hết hạn hay không; được xem là hoàn tất khi hành vi dự kiến và cách xử lý được ghi lại hoặc được bao quát bởi một bản sửa lỗi đã được xác minh.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- ios, swift
- Lĩnh vực
- authentication, mobile-dev
- Loại issue
- Lỗi
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 32/100