OAuth Integrations for Edge
Implements robust OAuth 2.0 flows for GitHub and Microsoft Entra within Cloudflare Workers and other edge runtimes.
This skill provides specialized guidance for implementing OAuth 2.0 authentication in edge environments where standard libraries like MSAL.js often fail due to runtime limitations. It offers specific patterns for GitHub and Microsoft Entra (Azure AD), covering critical header requirements, private email retrieval, manual token exchange, and JWT validation using edge-compatible libraries. It is an essential resource for developers building serverless applications on Cloudflare Workers who need to handle user identity and secure API access without relying on traditional Node.js modules or browser APIs.
Key Features
01Detailed configuration for Microsoft Entra tenants and required scope management
02Automated troubleshooting for common GitHub 403 errors and private email retrieval
03197 GitHub stars
04Edge-compatible manual OAuth 2.0 implementation without MSAL.js dependencies
05JWT validation patterns using edge-friendly libraries like jose
06Optimized token exchange patterns for serverless and V8 isolate runtimes
Use Cases
01Troubleshooting authentication failures and 403 errors in existing edge-based OAuth flows
02Implementing enterprise authentication with Microsoft Entra in a serverless environment
03Building a secure login system for a Cloudflare Workers application using GitHub