Skip to content

BasicAuthConfig

Defined in: packages/gateway/src/policies/auth/basic-auth.ts:13

Configuration for the basicAuth policy.

optional realm?: string

Defined in: packages/gateway/src/policies/auth/basic-auth.ts:21

Realm for the WWW-Authenticate header. Default: “Restricted”


optional skip?: (c) => boolean | Promise<boolean>

Defined in: packages/gateway/src/policies/types.ts:90

Skip this policy when condition returns true

unknown

boolean | Promise<boolean>

PolicyConfig.skip


validate: (username, password, c) => boolean | Promise<boolean>

Defined in: packages/gateway/src/policies/auth/basic-auth.ts:15

Validate username/password. Return true if valid.

string

string

Context

boolean | Promise<boolean>