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

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
!