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?

オープン
#458 コメント 5 件 リアクション 2 件 担当者 0 名 GitHub で見る
enhancement good first issue
主要言語
Objective-C
スター
750
フォーク
282
平均マージ
2日 15時間
マージ済み PR(30日)
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**
image

**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) {
...
}
```

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

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

評価

この issue はまだ評価されていません。

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

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