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

feat(auth): Emulator support for CreateCustomTokenAsync() API #293

Closed hiranya911 closed 3 years ago

hiranya911 commented 3 years ago

Implemented support for creating custom tokens for the emulator. In the emulator mode:

Bulk of the changes are just refactoring the existing tests. I've updated CustomTokenTest to be more inline with other test classes like IdTokenVerificationTest, where we test behavior via parameterization, as opposed to creating FirebaseApp instances with different configurations.

hiranya911 commented 3 years ago

Custom tokens don't use a kid header regardless of the method used to sign.