Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

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

Open
#772 12 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
42/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
firebase, java

Research direction

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.

Written by the indexing model from the issue text.

Description

api: core help wanted type: feature request

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()

Dominant language
Java
Stars
620
Forks
305
Avg merge
4d 9h
Merged PRs (30d)
4

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from firebase/firebase-admin-java

All issues in firebase/firebase-admin-java

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.