google / google/GoogleSignIn-iOS
When implementing Google Sign-In on iOS, is it possible to indicate in the google account sign-in popup that only email address will be used?
- 主要语言
- Objective-C
- 星标
- 750
- 派生
- 282
- 平均合并
- 2 天 15 小时
- 30 天内合并 PR
- 9
描述
**Describe the bug**
When implementing Google Sign-In on iOS, is it possible to indicate in the google account sign-in popup that only email address will be used?
**To Reproduce**
Steps to reproduce the behavior:
1. Implement google sign in using GoogleSignIn-iOS library
2. Build the app and press the google sign up button to proceed with the signup process.
3. In the google account integration popup, you will see that “name, email address, profile picture” are accessible in the user's account.
**Expected behavior**
I only need the user's email address. I want the popup to show the user that it only uses the email address.
As I understand it, name, email address, profile picture are the default public information in google account. However, I will only use the user's email address in my app via google sign-up, and I want the popup to show only the email address.
Is this possible?
**Screenshots**
**Environment**
- Device: any iPhone
- OS: any iOS
- Browser: N/A
**Additional context**
I've tested it without passing scope in the sign in request, and I've tested it with explicitly adding only userinfo.email as scope, but in both cases the sign-in popup shows that name, email address, profile picture are accessible. I want only the email address to be marked as accessible.
```swift
let additionalScopes = ["https://www.googleapis.com/auth/userinfo.email"]
GIDSignIn.sharedInstance.configuration = config
GIDSignIn.sharedInstance
.signIn(withPresenting: rootViewController, hint: nil, additionalScopes: additionalScopes) {
...
}
```
贡献指南
调研方向
Start with the GoogleSignIn-iOS sign-in flow and the Swift call using the userinfo.email additional scope. Review how the SDK presents requested and default account information in the popup, then reproduce the behavior on iOS. Done means determining whether the consent display can be limited to the email address and documenting the supported behavior or configuration.
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- ios, swift
- 领域
- authentication, mobile
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 冷清
- 描述清晰度
- 需要澄清
- 新手友好度
- 25/100