firebase / firebase/firebase-admin-java

[FR] Connect to Firebase Emulator (Auth) using custom hostname and port

オープン
#772 コメント 12 件 リアクション 2 件 担当者 0 名 GitHub で見る
api: core help wanted type: feature request
主要言語
Java
スター
620
フォーク
305
平均マージ
3時間 23分
マージ済み PR(30日)
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()`

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

まず FirebaseAuth と FirebaseApp の初期化を追跡し、次に既存の FirestoreOptions.setEmulatorHost() アプローチと比較します。FirebaseAuth.getInstance(firebaseApp()).useEmulator('localhost', '9099') がエミュレーター接続用のカスタムホスト名とポートを受け入れ、動的に割り当てられた TestContainers エンドポイントも扱えるようになれば、作業は完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
firebase, java
領域
authentication
issue の種類
機能追加
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
42/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。