firebase / firebase/firebase-admin-java
[FR] Connect to Firebase Emulator (Auth) using custom hostname and port
- Ngôn ngữ chính
- Java
- Star
- 620
- Fork
- 305
- Merge trung bình
- 3 giờ 23 phút
- Pull request đã merge (30 ngày)
- 1
Mô tả
**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()`
Hướng dẫn đóng góp
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- firebase, java
- Lĩnh vực
- authentication
- Loại issue
- Tính năng
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 42/100