firebase / firebase/firebase-admin-java
[FR] Connect to Firebase Emulator (Auth) using custom hostname and port
- 主要語言
- Java
- 星號
- 620
- 分支
- 305
- 平均合併
- 3 小時 23 分鐘
- 30 天內合併 PR
- 1
描述
**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()`
貢獻指南
研究方向
Start by tracing FirebaseAuth and FirebaseApp initialization, then compare the existing FirestoreOptions.setEmulatorHost() approach. The work is done when FirebaseAuth.getInstance(firebaseApp()).useEmulator('localhost', '9099') accepts a custom hostname and port for emulator connections, including dynamically assigned TestContainers endpoints.
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- firebase, java
- 領域
- authentication
- Issue 類型
- 功能
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 42/100