Skip to content
This repository was archived by the owner on Feb 14, 2018. It is now read-only.
This repository was archived by the owner on Feb 14, 2018. It is now read-only.

WWW-Authenticate header #43

Open
Open
@ghost

Description

When requests are unauthorized, it might help clients understand what was wrong if nginx-jwt were to send back a WWW-Authenticate header. This seems to be a pretty standard thing, and is mandatory for implementors of OAuth 2.0 Bearer tokens[1]. From the spec:

If the protected resource request does not include authentication
credentials or does not contain an access token that enables access
to the protected resource, the resource server MUST include the HTTP
"WWW-Authenticate" response header field

Users of the nginx the nginx auth_basic module get this for free, and might be surprised that nginx-jwt does not do this too.

Thank you for nginx-jwt!

[1] https://tools.ietf.org/html/rfc6750#section-3

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