firebase / firebase/firebase-admin-java
[FR] Connect to Firebase Emulator (Auth) using custom hostname and port
- Linguagem predominante
- Java
- Estrelas
- 620
- Forks
- 305
- Merge médio
- 3h 23min
- PRs com merge (30d)
- 1
Descrição
**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()`
Guia de contribuição
Direção de pesquisa
Comece rastreando a inicialização de FirebaseAuth e FirebaseApp e, em seguida, compare a abordagem existente de FirestoreOptions.setEmulatorHost(). O trabalho estará concluído quando FirebaseAuth.getInstance(firebaseApp()).useEmulator('localhost', '9099') aceitar um nome de host e uma porta personalizados para conexões com o emulador, incluindo endpoints do TestContainers atribuídos dinamicamente.
Escrita pelo modelo de indexação a partir do texto da issue.
Avaliação
- Stack de tecnologia
- firebase, java
- Domínio
- authentication
- Tipo de issue
- Funcionalidade
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Status de atividade
- Estagnada
- Clareza
- Razoavelmente clara
- Facilidade para iniciantes
- 42/100