Closed joemphilips closed 4 years ago
The error code should always be 402
if the WWW-Authenticate
header is sent:
Alongside the 402 status code, the server should specify the WWW-Authenticate header ([RFC7235], Section 4.1) field to indicate the LSAT authentication scheme and the macaroon needed for the client to form a complete LSAT.
If any other error happens, a 500
might be appropriate. But LSAT specifically only defines 402
.
Hi.
While I've been implementing http server middleware for LSAT, I found no spec for sending an error message to a client when it fails to authenticate. (For grpc over http2 there is
Grpc-Message
header.)Is there a plan to support something similar to OAuth 2.0 Error codes? Or should I just put arbitrary values to the
WWW-Authenticate
header like this.