www-authenticate

This commit is contained in:
Kagami Sascha Rosylight 2023-06-24 14:16:25 +02:00
parent 16a73dea26
commit d1534ec64e

View file

@ -659,7 +659,8 @@ describe('OAuth', () => {
// "The access token provided is expired, revoked, malformed, or // "The access token provided is expired, revoked, malformed, or
// invalid for other reasons. The resource SHOULD respond with // invalid for other reasons. The resource SHOULD respond with
// the HTTP 401 (Unauthorized) status code." // the HTTP 401 (Unauthorized) status code."
await assertDirectError(createResponse as Response, 401, 'invalid_token'); assert.strictEqual(createResponse.status, 401);
assert.ok(createResponse.headers.has('WWW-Authenticate'));
}); });
// https://datatracker.ietf.org/doc/html/rfc6749.html#section-3.1.2.4 // https://datatracker.ietf.org/doc/html/rfc6749.html#section-3.1.2.4