Skip to content

RemoteJwksRedirectPolicy ​

RemoteJwksRedirectPolicy ​

Redirect handling for a remote JWK Set. By default redirects are refused.

ts
interface RemoteJwksRedirectPolicy {
	readonly maxRedirects: number;
	readonly allow?: (destination: URL, from: URL) => boolean;
}

Properties

  • readonly maxRedirects: number — Maximum redirects followed per fetch.
  • readonly allow?: (destination: URL, from: URL) => boolean — Approves a redirect destination. Default: same origin as the hop it came from. The scheme rule applies first: https, or http for a loopback host.

Released under the MIT License.