www-authenticate

This commit is contained in:
Kagami Sascha Rosylight 2023-06-24 14:16:25 +02:00
parent 16a73dea26
commit d1534ec64e
1 changed files with 2 additions and 1 deletions

View File

@ -659,7 +659,8 @@ describe('OAuth', () => {
// "The access token provided is expired, revoked, malformed, or
// invalid for other reasons. The resource SHOULD respond with
// 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