Map alternate scope names in `addScopes`
@w-goog ya está trabajando en esto.
Desde el 26/8/2026.
Evaluación
Este issue todavía no se ha evaluado.
Descripción
Describe the bug
When calling addScopes, the check against the existing granted scopes doesn't normalize the names. If the core scopes are passed in using their short names (email, openid, profile), the SDK will prompt unnecessarily, because the granted scopes appear to use the v2 names.
Obviously this can be easily worked around from the client side by not making that call in the first place, but it creates some unexpected complexity in the Flutter wrapper (see https://github.com/flutter/flutter/issues/184872), which has to bridge across the iOS, Android, and Web sign in APIs (which are all quite different). We can work around it at the wrapper level, but it would be nice if the SDK handled this name mismatch internally.
To Reproduce
Steps to reproduce the behavior:
- Sign in.
- Call
addScopes:...with[@"email", @"openid", @"profile"]as the scopes. - See a user prompt.
Expected behavior
Receive kGIDSignInErrorCodeScopesAlreadyGranted, since AFAICT signing in grants those scopes automatically, but under different names.
- Lenguaje dominante
- Objective-C
- Estrellas
- 751
- Forks
- 282
- Merge medio
- 2 d 15 h
- PR fusionados (30 d)
- 9
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de google/GoogleSignIn-iOS
-
enhancement triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
google/GoogleSignIn-iOS#621 ·
-
enhancement triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
google/GoogleSignIn-iOS#620 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
google/GoogleSignIn-iOS#440 · 4 comentarios · 2 reacciones ·
-
enhancement triage
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
google/GoogleSignIn-iOS#611 ·
-
Remove Cocoapods Support Abierto
Dificultad 4/5 3-5 días Aptitud para principiantes 45/100
google/GoogleSignIn-iOS#607 ·
Todos los issues de google/GoogleSignIn-iOS
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
-
macOS下查找brew::ncurse失败 Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
noah-nuebling/mac-mouse-fix#2054 ·
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 92/100
obsproject/obs-studio#13918 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
HigherOrderCO/Bend#842 · 2 comentarios ·