Skip to content

Commit 76a4fc2

Browse files
esraagamal6claude
andcommitted
docs(request-validation): note auth-invalid also overrides header rendering
The headersAuth field doc only flagged auth-deny as rendering its own Authorization header despite headersAuth:false. auth-invalid does too (a well-formed header with an invalid/unknown credential). Generalize the note to cover both kinds. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent a2aee31 commit 76a4fc2

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

request-validation/src/model/types.ts

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -140,10 +140,14 @@ export interface ValidationScenario {
140140
description: string;
141141
/**
142142
* Whether to send the configured *admin* credentials, i.e. authHeaders()
143-
* (multipart) / jsonHeaders() (JSON). false → no headers ({}).
144-
* NOTE: this flag does not govern `auth-deny` scenarios — those always
145-
* authenticate as the zero-grant probe user via denyProbeHeaders() (a
146-
* different principal) regardless of this value, which they leave false.
143+
* (multipart) / jsonHeaders() (JSON). false → no admin credentials.
144+
* NOTE: some scenario kinds render their own `Authorization` header
145+
* regardless of this flag (which they leave `false`):
146+
* - `auth-deny` authenticates as the zero-grant probe user via
147+
* denyProbeHeaders() (a different principal);
148+
* - `auth-invalid` sends a well-formed header carrying an invalid/unknown
149+
* credential (`Bearer invalid-token`).
150+
* For all other kinds, `false` → no headers (`{}`).
147151
*/
148152
headersAuth: boolean;
149153
source?: 'body' | 'query' | 'path' | 'header' | 'cookie';

0 commit comments

Comments
 (0)