oauth-integrations

Implement OAuth 2.0 authentication for GitHub and Microsoft Entra ID in Cloudflare Workers.

54|Updated Nov 19, 2025
One-click install
npx skills add https://github.com/dennislee928/Ethic-Latex --skill oauth-integrations
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: oauth-integrations
Source: https://github.com/dennislee928/Ethic-Latex/tree/main/.claude/skills/oauth-integrations
Command: npx skills add https://github.com/dennislee928/Ethic-Latex --skill oauth-integrations

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires jose, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill simplifies the complex process of integrating OAuth 2.0 authentication for GitHub and Microsoft Entra ID within resource-constrained edge environments like Cloudflare Workers, where standard SDKs often fail.

Core Features & Use Cases

  • GitHub OAuth: Handles specific header requirements (like User-Agent) and private email fetching.
  • Microsoft Entra (Azure AD) OAuth: Provides manual OAuth flows and JWT validation using the jose library, bypassing MSAL limitations.
  • Edge Runtime Compatibility: Designed for environments without browser or Node.js APIs.
  • Use Case: You need to implement a login flow for your Cloudflare Worker application using both GitHub and Azure AD credentials, ensuring secure and correct token handling for each provider.

Quick Start

Use the oauth-integrations skill to implement GitHub OAuth in your Cloudflare Worker.

Frequently Asked Questions about oauth-integrations

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I implement OAuth 2.0 in a Cloudflare Worker without standard SDKs?

To implement GitHub OAuth in a Cloudflare Worker, you must manually construct the authentication flow to address specific header requirements like User-Agent and fetch private emails, as standard SDKs often fail in resource-constrained edge environments.

Why does Microsoft Entra ID OAuth fail in edge runtimes using MSAL?

Microsoft Entra ID OAuth can fail in edge runtimes using MSAL due to environment limitations. You can bypass these MSAL limitations by using manual OAuth flows and JWT validation with the jose library, ensuring secure token handling in serverless computing.

Can I use the jose library for JWT validation with Azure AD in serverless environments?

Yes, you can use the jose library for JWT validation with Azure AD in serverless environments. It facilitates secure Microsoft Entra ID authentication by enabling manual OAuth flows and token handling without relying on standard SDKs that fail in edge runtimes.

What are the limitations of using standard authentication SDKs in edge computing?

Standard authentication SDKs often fail in edge computing because they rely on browser or Node.js APIs that are unavailable in resource-constrained environments. Manual OAuth flows and libraries like jose are required to handle provider-specific quirks and ensure secure edge runtime compatibility.