Skip to content

[Bug] Auth Emulator Support Doesn't Seem To Work On Windows #1530

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
brianmichel opened this issue Jan 30, 2024 · 7 comments
Closed

[Bug] Auth Emulator Support Doesn't Seem To Work On Windows #1530

brianmichel opened this issue Jan 30, 2024 · 7 comments
Labels
api: auth closed-by-bot needs-info Need information for the developer stale Don't have recent activity type: question

Comments

@brianmichel
Copy link

[REQUIRED] Please fill in the following fields:

  • Pre-built SDK from the website or open-source from this repo: open source from the repo
  • Firebase C++ SDK version: ~11.3.0
  • Problematic Firebase Component: Auth (but worried about other emulators)
  • Other Firebase Components in use: Firestore, Functions
  • Platform you are using the C++ SDK on: Windows
  • Platform you are targeting: desktop

[REQUIRED] Please describe the issue here:

I've set the environment variable USE_AUTH_EMULATOR in my power shell and I'm attempting to run an application that embeds the Firebase SDK into it. I see my test code correctly read out the value of USE_AUTH_EMULATOR from the environment so I do believe the program is picking up the correct environment values, but I don't see requests made to my local emulators, no logs are generated on the emulator side, and signing into an account that has been stored in the emulation environment also fails.

Steps to reproduce:

  1. run $env:USE_AUTH_EMULATOR = "true"
  2. run the application that uses the Firebase SDK

What happened? How can we make the problem occur?
The application continued to use the regularly configured Firebase environment in the cloud, and not the emulators.

If you have a downloadable sample project that reproduces the bug you're reporting, you will
likely receive a faster response on your issue.

Relevant Code:

https://github.com/thebrowsercompany/firebase-cpp-sdk/blob/dece3ca27997a620098eaf1734011869228b5a44/auth/src/desktop/rpcs/auth_request.cc#L96-L116

@cynthiajoan
Copy link
Contributor

@brianmichel I'd like to have two more information about your setup

  1. What's the port of your auth emulator, the default one we are using is 9099, and if your emulator is starting in another port, you can use AUTH_EMULATOR_PORT variable to set it.
  2. What's. the firewall setup in your machine. Wondering if the call is blocked by the firewall.

Thanks.

@cynthiajoan cynthiajoan added needs-info Need information for the developer and removed new New issue. labels Feb 5, 2024
@brianmichel
Copy link
Author

What's the port of your auth emulator, the default one we are using is 9099, and if your emulator is starting in another port, you can use AUTH_EMULATOR_PORT variable to set it.

We're using the default port of 9099, I'm just using firebase emulators:start to kick off the emulators which seems to use the default port you have mentioned.

What's. the firewall setup in your machine. Wondering if the call is blocked by the firewall.

I just have a standard Windows firewall running, I can try turning it off and see what happens, if you think that's advisable. Typically Windows will prompt for network access which I believe I've granted since I see my OpenJDK instance allowed to make TCP and UDP connections
image, but let me know if there's a better way to check if the emulators have the appropriate access through the firewall.

@google-oss-bot google-oss-bot added needs-attention Need Googler's attention and removed needs-info Need information for the developer labels Feb 6, 2024
@brianmichel
Copy link
Author

Hey @cynthiajoan any thoughts here?

@cynthiajoan
Copy link
Contributor

Hmmm, can you provide a minimum repro project, or try to use the testapp https://github.com/firebase/quickstart-cpp/tree/main/auth/testapp to repro the problem?

@cynthiajoan cynthiajoan added needs-info Need information for the developer and removed needs-attention Need Googler's attention labels Feb 14, 2024
@brianmichel
Copy link
Author

Hmmm, can you provide a minimum repro project, or try to use the testapp https://github.com/firebase/quickstart-cpp/tree/main/auth/testapp to repro the problem?

I'll give the test app a try!

@google-oss-bot google-oss-bot added needs-attention Need Googler's attention and removed needs-info Need information for the developer labels Feb 14, 2024
@cynthiajoan cynthiajoan added needs-info Need information for the developer and removed needs-attention Need Googler's attention labels Feb 26, 2024
@google-oss-bot google-oss-bot added the stale Don't have recent activity label Feb 27, 2024
@google-oss-bot
Copy link

Hey @brianmichel. We need more information to resolve this issue but there hasn't been an update in 5 weekdays. I'm marking the issue as stale and if there are no new updates in the next 5 days I will close it automatically.

If you have more information that will help us get to the bottom of this, just add a comment!

@google-oss-bot
Copy link

Since there haven't been any recent updates here, I am going to close this issue.

@brianmichel if you're still experiencing this problem and want to continue the discussion just leave a comment here and we are happy to re-open this.

@firebase firebase locked and limited conversation to collaborators Apr 4, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
api: auth closed-by-bot needs-info Need information for the developer stale Don't have recent activity type: question
Projects
None yet
Development

No branches or pull requests

3 participants