Firebase Auth Emulator interferes with Firebase Storage
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
- Stack tecnologico
- java
- Ambito
- authentication, backend
Direzione di ricerca
Inizia leggendo src/main/java/com/google/firebase/auth/internal/Utils.java e src/main/java/com/google/firebase/ImplFirebaseTrampolines.java, prestando particolare attenzione alla gestione di FIREBASE_AUTH_EMULATOR_HOST e delle credenziali dell'emulatore. Riproduci il problema con Auth e Storage abilitati insieme, quindi verifica che le chiamate a Storage rimangano autorizzate mentre le credenziali dell'emulatore vengano applicate solo ad Auth; verifica inoltre se istanze separate di FirebaseApp possano avere configurazioni dell'emulatore diverse.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
[READ] Step 1: Are you in the right place?
- For issues or feature requests related to the code in this repository
file a Github issue.- If this is a feature request make sure the issue title starts with "FR:".
- For general technical questions, post a question on StackOverflow
with the firebase tag. - For general Firebase discussion, use the firebase-talk
google group. - For help troubleshooting your application that does not fall under one
of the above categories, reach out to the personalized
Firebase support channel.
[REQUIRED] Step 2: Describe your environment
- Operating System version: Windows 11
- Firebase SDK version: ____
- Library version: 9.1.1
- Firebase Product: auth, storage
[REQUIRED] Step 3: Describe the problem
We access the Auth and Storage services in our project using this Java Admin SDK.
Recently, we wanted to make use of the Auth Emulator for development purposes. However, after enabling the emulator by setting the FIREBASE_AUTH_EMULATOR_HOST environment variable, the Storage calls stop working and return 401 Unauthorized.
It seems that by setting the FIREBASE_AUTH_EMULATOR_HOST environment variable, the whole project enters an emulator mode and uses emulator credentials. The emulator credentials should be made to only apply to Auth calls.
Furthermore, I could not even find a way to create two instances of FirebaseApps (one with the emulator enabled and one disabled), since the check for FIREBASE_AUTH_EMULATOR_HOST is static and shared program-wide.
Steps to reproduce:
Use Auth and Storage in a production project. Enable FIREBASE_AUTH_EMULATOR_HOST and Storage stops working.
- Lingua principale
- Java
- Stelle
- 620
- Fork
- 305
- Merge medio
- 4g 9h
- PR unite (30g)
- 4
Guida per i contributori
Apri la guida per i contributori
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/firebase-admin-java
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
firebase/firebase-admin-java#1231 ·
-
api: core
firebase/firebase-admin-java#1198 · 3 commenti · 1 assegnatario ·
-
api: remoteconfig
firebase/firebase-admin-java#1196 · 1 commento · 2 assegnatari ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
firebase/firebase-admin-java#1192 · 3 commenti ·
-
needs-triage type: feature request
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
firebase/firebase-admin-java#1149 · 1 commento ·
Tutte le issue di firebase/firebase-admin-java
Issue simili
-
awaiting triage bug Causes friction Hop Gui P1 P2 Transforms
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
apache/flink-agents#1152 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
jenkinsci/blueocean-plugin#5417 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
objectionary/eo-graphs#75 ·