firebase / firebase-admin-dotnet

Firebase Admin .NET SDK
https://firebase.google.com/docs/admin/setup
Apache License 2.0
366 stars 131 forks source link

fix(auth): Setting EmulatorHost programatically #290

Closed hiranya911 closed 3 years ago

hiranya911 commented 3 years ago

This PR builds on top of #289, and makes it possible to enable the emulator mode in FirebaseUserManager via a programmatic parameter. This in turns makes it possible to test the emulator mode via simple parameterization, as opposed to environment variable manipulation. We are also adding a new smaller test class (FirebaseAuthEmulatorTest), that verifies the SDK is reading the environment variable correctly.

I'm also removing the emulator support from the TenantManager class for now. Without tests this feature is incomplete.