这是indexloc提供的服务,不要输入任何密码
Skip to content

FR: Support Authentication Emulator #409

@maku693

Description

@maku693

Step 2: Describe your environment

  • Operating System version: all
  • Firebase SDK version: 4.1.0
  • Firebase Product: auth

Step 3: Describe the problem

Firebase Local Emulator Suite has Authentication Emulator, but this SDK doesn't support the emulator yet.

While Realtime Database emulator support being discussed on #298, I believe emulator support can be implemented separately for each product, so I opened a new issue to discuss about Authentication Emulator support.

To support auth emulator, following implementation should be added (We can borrow the ideas of Node.js Admin SDK which already supports the emulator; cf. firebase/firebase-admin-node#1044):

  1. Provide a way to configure the auth client to use the Emulator Suite.
    • To be consistent with original Node.js implementation, auth emulator support should be enabled via setting FIREBASE_AUTH_EMULATOR_HOST environment variable.
  2. Emulated signer for token generation / validation.
  3. Replace identity toolkit API endpoints with local (emulated) ones when using the emulator.

The steps above mostly been deduced from Node.js implementation, so they are incomplete perhaps.

Relevant Code:

I've submitted a PR. #414

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions