Inconsistent behavior of providers using GoogleProvider() and AppleProvider()
I maintainer di solito rispondono entro 7 giorni
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 35/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Ambito
- authentication, mobile
Direzione di ricerca
Inizia riproducendo il flusso descritto con SignInScreen, GoogleProvider(clientId:) e AppleProvider(), effettuando prima l’accesso anonimo su un dispositivo e usando poi le stesse credenziali su un altro. Confronta il comportamento dei provider durante il collegamento e l’accesso, incluso l’errore credentials-already-in-use; il lavoro è completato quando Google gestisce le credenziali esistenti in modo coerente con Apple senza tentare erroneamente di collegarle a un nuovo account anonimo.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Is there an existing issue for this?
- I have searched the existing issues and found no duplicates.
What plugin is this bug for?
Firebase UI OAuth Google, Firebase UI OAuth Apple
What platform(s) does this bug affect?
Android, iOS
List of dependencies used.
flutter pub deps -s list
firebase_core: ^2.10.0 firebase_auth: 4.12.1 firebase_ui_auth: ^1.1.8 firebase_ui_oauth: ^1.1.8 firebase_ui_oauth_google: ^1.0.15 firebase_ui_oauth_apple: ^1.0.15
Steps to reproduce
Setup the standard SignInScreen of FirebaseUIAuth with successfully configured providers GoogleProvider(clientId:) and AppleProvider() and login the existing user with the signInAnonymously method beforehand.
On the SignInScreen, using the "Sign in with Apple" option, the account is permanently created in the user management and successfully upgraded / linked to the provider. Logging in on another device after that (while being again anonymously logged in before, too) the anonymous login is overwritten in favor of the recently created account, linked with the apple provider.
However, trying the same using the GoogleProvider, the behavior seems to differ and I hope someone can either explain this behavior to me or look into the issue.
Expected Behavior
It is expected that the GoogleProvider works exactly the same as the AppleProvider in case of Sign-up, linking and especially signing in again on a different device using the same credentials.
Actual Behavior
Signing in with the GoogleProvider on another device leads to an "credentials-already-in-use" error of the framework, indicating that the credentials belong to another account and therefore cannot be linked to another (anonymous) user.
In contrast to AppleProvider, the GoogleProvider doesn't seem to recognize that the user tries to sign-in with existing credentials, so it seems impossible to sign-in with GoogleProvider like it is with AppleProvider.
Same holds true if you log out of your existing account, being automatically logged in anonymously again immediately by the app, then trying to sign-in using the same credentials used some minutes ago.
Additional Information
No response
- Lingua principale
- Dart
- Stelle
- 152
- Fork
- 141
- Merge medio
- 2g 10h
- PR unite (30g)
- 12
Preparare l'ambiente
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di firebase/FirebaseUI-Flutter
-
auth blocked: customer response enhancement Keep Open
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
firebase/FirebaseUI-Flutter#418 · 7 commenti · 3 reazioni ·
I maintainer di solito rispondono entro 7 giorni
-
auth Keep Open Needs Attention
Difficoltà 4/5 3-5 giorni Idoneità per principianti 20/100
firebase/FirebaseUI-Flutter#351 · 3 commenti · 1 reazione ·
I maintainer di solito rispondono entro 7 giorni
-
enhancement Keep Open storage
Difficoltà 4/5 3-5 giorni Idoneità per principianti 38/100
firebase/FirebaseUI-Flutter#290 · 2 commenti ·
I maintainer di solito rispondono entro 7 giorni
-
auth bug Keep Open Needs Attention
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
firebase/FirebaseUI-Flutter#261 · 6 commenti · 3 reazioni ·
I maintainer di solito rispondono entro 7 giorni
-
enhancement Keep Open oauth
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
firebase/FirebaseUI-Flutter#247 · 3 commenti · 4 reazioni ·
I maintainer di solito rispondono entro 7 giorni
Tutte le issue di firebase/FirebaseUI-Flutter
Issue simili
-
area-clientside-dartpad
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
[BUG]: 一个小问题反馈,交互按钮的错误与重复Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 92/100
firebase/flutterfire#18726 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
ai-driven-qa bug claude
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
linagora/tmail-flutter#4878 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno