www-authenticate
This commit is contained in:
parent
16a73dea26
commit
d1534ec64e
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue