Prompt Buddy logoPrompt Buddy

cloudflare · Cloudflare Workers Docs

Workers HTTP Basic Authentication

Implementation of an HTTP Basic Authentication schema within a Cloudflare Worker using the Node.js Buffer API and compatibility mode.

Import to Prompt Buddy

Derived skill

Files assembled from official documentation

Viewing SKILL.md

Workers HTTP Basic Authentication

Implementation of an HTTP Basic Authentication schema within a Cloudflare Worker using the Node.js Buffer API and compatibility mode.

When To Use

Use when you need to implement a simple credential-based access restriction on a Cloudflare Worker using the HTTP Basic schema.

Reference Files

FileContainsUse For
SKILL.mdEntry point: scope, routing table, and workflow.Start here.
docs/workers-examples-basic-auth-http-authentication-workflow-guide.mdA markdown guide demonstrating how to implement HTTP Basic Authentication to restrict access to a Cloudflare Worker.Questions about a markdown guide demonstrating how to implement HTTP Basic Authentication to restrict access to a Cloudflare Worker.
examples/workers-examples-basic-auth-http-authentication-cloudflare-workers-http-.textA JavaScript implementation demonstrating how to restrict access to a Cloudflare Worker using the HTTP Basic authentication scheme and timing-safe comparisons.Exact payloads, commands, or snippets shown in A JavaScript implementation demonstrating how to restrict access to a Cloudflare Worker using the HTTP Basic authenti...
examples/workers-examples-basic-auth-http-authentication-cloudflare-workers-http--2.textA JavaScript implementation demonstrating how to restrict access to a Cloudflare Worker using the HTTP Basic authentication scheme and timing-safe comparisons.Exact payloads, commands, or snippets shown in A JavaScript implementation demonstrating how to restrict access to a Cloudflare Worker using the HTTP Basic authenti...
examples/workers-examples-basic-auth-http-authentication-cloudflare-workers-rust-.textA Rust implementation of a Cloudflare Worker that validates HTTP Basic Authentication credentials using environment secrets.Exact payloads, commands, or snippets shown in A Rust implementation of a Cloudflare Worker that validates HTTP Basic Authentication credentials using environment s...
examples/workers-examples-basic-auth-http-authentication-cloudflare-workers-hono-.textA JavaScript example using the Hono framework to implement HTTP Basic Authentication within a Cloudflare Worker.Exact payloads, commands, or snippets shown in A JavaScript example using the Hono framework to implement HTTP Basic Authentication within a Cloudflare Worker.

What This Skill Covers

  • Shows how to restrict access using the HTTP Basic schema.
  • Main sections: Tags.

Workflow

  1. Open the most relevant file under docs/ for the exact documented workflow and wording.
  2. Open schemas/ files for exact structured contracts.
  3. Open examples/ files for concrete requests, commands, snippets, and manifests.
  4. Do not add behavior or configuration that is not present in the attached source files.

Canonical source: https://developers.cloudflare.com/workers/examples/basic-auth