google / google/GoogleSignIn-iOS

`GIDSignIn.sharedInstance.signIn(...)` is requesting more scopes than it should on version 7.1.0

Abierto
#407 4 comentarios 1 reacción 0 asignados Ver en GitHub
enhancement
Lenguaje dominante
Objective-C
Estrellas
750
Forks
282
Merge medio
2 d 15 h
PR fusionados (30 d)
9

Descripción

**Describe the bug**
I was updating Google Sign-In in our app from version 6.0.2 to version 7.1.0 and I noticed that even though we're not requesting any additional scopes, `GIDSignIn.sharedInstance.signIn(...)` is presenting a page after login asking the user to give additional permissions before completing the Sign-In flow.

This wasn't happening previously when we were using version 6.0.2.

**To Reproduce**
Steps to reproduce the behavior:

1. Use this call to initiate the Sign-In flow:

```swift
GIDSignIn.sharedInstance.signOut()
GIDSignIn.sharedInstance.configuration = GIDConfiguration(clientID: "...our client ID")

GIDSignIn.sharedInstance.signIn(
withPresenting: presentingViewController,
completion: { [weak self] result, error in
// ... complete login
}
}
```

2. Run the app on the simulator or a device.
3. Initiate the Sign-in flow.

**Expected behavior**
No additional scopes should be requested after completing Sign-In with Google.

**Screenshots**
| Version 7.1.0 |
|--------------|
| Screenshot 2024-05-03 at 11 51 05 |

**Environment**
- Device: Tested on the iPhone 15 Simulator (iOS 17.0) and an iPhone 11 Pro (iOS 17.4.1)
- OS: iOS 17

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.