Skip to content
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

feat(auth): Add support for Firebase Authentication Emulator #289

Merged
merged 36 commits into from
Mar 25, 2021
Merged
Changes from 1 commit
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
03d9f5a
Add IdToolkitHostResolver with tests
floppydisken Mar 16, 2021
92ea12d
Add resolution for versions of the API with tests
floppydisken Mar 18, 2021
5e22928
Simplify and reduce IdToolkitHostResolver to a Util method
floppydisken Mar 20, 2021
f957a2b
Add TestConfig for testing against FirebaseEmulatorHost
floppydisken Mar 20, 2021
5fa8bc3
Add license for new Utils class file
floppydisken Mar 20, 2021
98a979e
Add documentation for ResolveIdToolkitHost with examples
floppydisken Mar 20, 2021
829f62d
Use the EnvironmentVariable class to access env variables
floppydisken Mar 20, 2021
e2b70f6
Fix formatting
floppydisken Mar 20, 2021
3a06064
Use inheritance instead of TestConfig to set FirebaseUserManager tests
floppydisken Mar 20, 2021
19c386a
Cleanup and rename variable to more meaningful name
floppydisken Mar 24, 2021
85ee525
Move Utils and EnvironmentVariable class to Auth namespace
floppydisken Mar 24, 2021
23e064f
Move emulatorHostEnvVar to where it's used for readability
floppydisken Mar 24, 2021
98948fb
Rename UtilTest to more appropriate name
floppydisken Mar 24, 2021
099a1d8
Rename expected...Host to expected...Url
floppydisken Mar 24, 2021
a78f018
Use the FirebaseAuthEmulatorHostName const instead of string
floppydisken Mar 24, 2021
1f701d8
Add missing license head
floppydisken Mar 24, 2021
c7cbd41
Add missing util import and fix stylecop complaints
floppydisken Mar 24, 2021
002d368
Rename AuthUtil to Util and move to Auth test folder
floppydisken Mar 24, 2021
bddaafc
Simplify emulator host environment variable to be a constant in Utils
floppydisken Mar 24, 2021
afee451
Use string literal for emulator host in FirebaseUserManagerTest
floppydisken Mar 24, 2021
1e3fe6b
Remove unnecessary tests from FirebaseAuthTest
floppydisken Mar 24, 2021
52c7b9e
Use string literal to ensure test fails if constant is changed
floppydisken Mar 24, 2021
248f5e7
Remove the environment simplification since there is only one callsite
floppydisken Mar 24, 2021
778d3c1
Cleanup GetIdToolkitHost documentation
floppydisken Mar 24, 2021
6f3cf7e
Correct typo in file name. Util -> Utils.
floppydisken Mar 25, 2021
76d4aa2
Rename test cass to UtilsTest
floppydisken Mar 25, 2021
c190edc
Add tenant resolution to GetIdToolkitHost
floppydisken Mar 25, 2021
31ec063
Add function for resolving GoogleCredentials when in emulator mode
floppydisken Mar 25, 2021
b18be18
Add test for tenant url resolution
floppydisken Mar 25, 2021
f9c6cae
Use if statement instead of ternary for tenantIdPath
floppydisken Mar 25, 2021
4c62390
Better formatting for GetIdToolkitHost
floppydisken Mar 25, 2021
359dc7c
Add periods to the end of documentation strings
floppydisken Mar 25, 2021
a80cca4
Remove nullable and provide empty string instead
floppydisken Mar 25, 2021
590ffa6
Change to only have one single line at end
floppydisken Mar 25, 2021
855aac4
Add convenience funcs for getting and checking emulator host env vari…
floppydisken Mar 25, 2021
1595d36
Simplify GetEmulatorHost name
floppydisken Mar 25, 2021
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add license for new Utils class file
  • Loading branch information
floppydisken committed Mar 20, 2021
commit 5fa8bc353dcec3676637e4adb5a96a3e39936a43
14 changes: 14 additions & 0 deletions FirebaseAdmin/FirebaseAdmin/Util/Utils.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
// Copyright 2019, Google Inc. All rights reserved.
hiranya911 marked this conversation as resolved.
Show resolved Hide resolved
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

using System;

namespace FirebaseAdmin.Util
hiranya911 marked this conversation as resolved.
Show resolved Hide resolved
Expand Down