Skip to content

401 responses MUST contain WWW-Authenticate header #655

Closed

Description

@RubenVerborgh

The server generating a 401 response MUST send
a WWW-Authenticate header field (Section 4.1) containing at least one
challenge applicable to the target resource.

—https://tools.ietf.org/html/rfc7235#section-3.1

The legacy solid-auth-client requires the value to be exactly Bearer scope="openid webid", which is a pain because that's not forward compatible. But we need to set it in any case.

Probably depends on #654.

Activity

  1. jvherweg commented on Mar 5, 2021

    @jvherweg
    Member

    I think it's mostly independent of #654 (although the interfaces might influence each other). We might need something similar to the BasicResponseWriter where a bunch of MetadataWriters add metadata, but in this case then based on the error/status code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions