Cloudflare Zero Trust Access authentication for Workers. Use for JWT validation, service tokens, CORS, or encountering preflight blocking, cache race conditions, missing JWT headers.
View on GitHubsecondsky/claude-skills
cloudflare-zero-trust-access
plugins/cloudflare-zero-trust-access/skills/cloudflare-zero-trust-access/SKILL.md
January 24, 2026
Select agents to install to:
npx add-skill https://github.com/secondsky/claude-skills/blob/main/plugins/cloudflare-zero-trust-access/skills/cloudflare-zero-trust-access/SKILL.md -a claude-code --skill cloudflare-zero-trust-accessInstallation paths:
.claude/skills/cloudflare-zero-trust-access/# Cloudflare Zero Trust Access Skill Integrate Cloudflare Zero Trust Access authentication with Cloudflare Workers applications using proven patterns and templates. --- ## Overview This skill provides complete integration patterns for Cloudflare Access, enabling application-level authentication for Workers without managing your own auth infrastructure. **What is Cloudflare Access?** Cloudflare Access is Zero Trust authentication that sits in front of your application, validating users before they reach your Worker. After authentication, Access issues JWT tokens that your Worker validates. **Key Benefits**: - No auth infrastructure to maintain - Integrates with identity providers (Azure AD, Google, Okta, GitHub) - Service tokens for machine-to-machine auth - Built-in MFA and session management - Comprehensive audit logs --- ## When to Use This Skill Trigger this skill when tasks involve: - **Authentication**: Protecting Worker routes, securing admin dashboards, API authentication - **Access Control**: Role-based access (RBAC), group-based permissions, geographic restrictions - **Service Auth**: Backend services calling Worker APIs, CI/CD pipelines, cron jobs - **Multi-Tenant**: SaaS apps with organization-level authentication - **CORS + Auth**: Single-page applications calling protected APIs **Keywords to Trigger**: cloudflare access, zero trust, access authentication, JWT validation, service tokens, cloudflare auth, hono access, workers authentication, protect worker routes, admin authentication --- ## Integration Patterns ๐ **New to Cloudflare Access?** Load `references/quick-start.md` for step-by-step setup instructions (15-20 minutes). ### Pattern 1: Hono Middleware (Recommended) Use `@hono/cloudflare-access` for one-line Access integration. **When to Use**: - Building with Hono framework - Need quick, production-ready setup - Want automatic JWT validation and key caching **Template**: `templates/hono-basic-setup.ts` **Setup**: ```typescript i