firebase / firebase/firebase-admin-java
[FR] Connect to Firebase Emulator (Auth) using custom hostname and port
- Lenguaje dominante
- Java
- Estrellas
- 620
- Forks
- 305
- Merge medio
- 3 h 23 min
- PR fusionados (30 d)
- 1
Descripción
**Is your feature request related to a problem? Please describe.**
I am trying to setup a testing phase that would run tests on the Emulator by connecting to it. The Emulator is prepared using TestContainers which don't open specific ports, but rather random. Because of this I cannot use the environment variable specified as that blocks me into selecting a hostname and port.
**Describe the solution you'd like**
Make the hostname and port dynamic when initialising FirebaseAuth / FirebaseApp.
**Describe alternatives you've considered**
-
**Additional context**
### Expected usage
```
FirebaseAuth.getInstance(firebaseApp()).useEmulator('localhost', '9099')
```
For example, Firestore has this enabled using `FirestoreOptions.newBuilder().setEmulatorHost()`
Guía de contribución
Línea de trabajo
Empieza rastreando la inicialización de FirebaseAuth y FirebaseApp, y después compara el enfoque existente de FirestoreOptions.setEmulatorHost(). El trabajo estará terminado cuando FirebaseAuth.getInstance(firebaseApp()).useEmulator('localhost', '9099') acepte un nombre de host y un puerto personalizados para las conexiones con el emulador, incluidos los endpoints de TestContainers asignados dinámicamente.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- firebase, java
- Área
- authentication
- Tipo de issue
- Nueva funcionalidad
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 42/100