Skip to content

Clear user accounts endpoint not working as intended #3013

@hamboomger

Description

@hamboomger

[REQUIRED] Environment info

firebase-tools:
9.1.2

Platform:
MacOS 11.0.1

[REQUIRED] Test case

Request to:

DELETE http://localhost:9099/emulator/v1/projects/{projectId}/accounts

[REQUIRED] Steps to reproduce

  1. Run firebase auth emulator using FIREBASE_AUTH_EMULATOR_HOST=localhost:9099
  2. Make a DELETE request to http://localhost:9099/emulator/v1/projects/{projectId}/accounts as described in the API
  3. Get an authentication error

[REQUIRED] Expected behavior

Delete all user accounts

[REQUIRED] Actual behavior

Following response:

{
    "error": {
        "code": 401,
        "message": "Request is missing required authentication credential. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.",
        "errors": [
            {
                "message": "Login Required.",
                "domain": "global",
                "reason": "required",
                "location": "Authorization",
                "locationType": "header"
            }
        ],
        "status": "UNAUTHENTICATED"
    }
}

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions