Skip to content

/delete route is not http compliant (401/403/Authorisation/WWW-Authorisation) #164

@Julien00859

Description

@Julien00859

Reading the HTTP Spec there are several problems with the /delete route.

  1. When the Authorization header is missing or that the scheme is invalid, the response must be a 401 response with a WWW-Authenticate header.
  2. When the Authorization header is present and the scheme valid but that the code is invalid, the response must be a 403 response.
  3. The "Token" type does not exist, should be something else, I think "Bearer" but we should verify.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions