azure-auth
✓Verified·Scanned 2/18/2026
Provides Microsoft Entra ID (Azure AD) authentication patterns for React SPAs and Cloudflare Workers, including MSAL React setup and jose-based JWT validation. The skill makes network calls to https://login.microsoftonline.com/... to fetch OpenID configuration and requires env vars VITE_AZURE_CLIENT_ID, VITE_AZURE_TENANT_ID, AZURE_CLIENT_ID, and AZURE_TENANT_ID.
from clawhub.ai·vc84bca6·62.3 KB·0 installs
Scanned from 0.1.0 at c84bca6 · Transparency log ↗
$ vett add clawhub.ai/veeramanikandanr48/azure-auth
azure-auth
Microsoft Entra ID (Azure AD) authentication for React SPAs + Cloudflare Workers backend.
Auto-Trigger Keywords
This skill activates when you mention:
Technologies
- Azure AD, Azure Active Directory, Microsoft Entra ID, Entra ID
- MSAL, MSAL.js, msal-react, msal-browser, @azure/msal-react, @azure/msal-browser
- Microsoft authentication, Microsoft SSO, Microsoft login
- Azure B2C, Entra External ID
Use Cases
- Microsoft SSO, Azure SSO, corporate SSO, enterprise SSO
- Office 365 login, Microsoft 365 authentication
- Azure AD token validation, Entra token validation
- JWT validation Azure, validate Azure token
- JWKS Azure, Azure AD JWKS
Errors
- AADSTS50058, AADSTS700084, AADSTS65001, AADSTS90102
- no_cached_authority_error
- interaction_in_progress
- redirect loop MSAL, infinite loop MSAL
- acquireTokenSilent failed
- refresh token expired SPA
Patterns
- Azure AD React, MSAL React setup
- Azure AD Cloudflare Workers
- MsalProvider, PublicClientApplication
- Authorization Code Flow PKCE Azure
- Multi-tenant Azure AD
What This Skill Provides
- MSAL React Setup - Configuration, provider, hooks
- Protected Routes - Auth-gated components with proper loading states
- Token Acquisition - Silent + interactive fallback patterns
- Workers JWT Validation - jose-based validation (MSAL doesn't work in Workers)
- Error Prevention - AADSTS codes, redirect loops, JWKS quirks
- Multi-Tenant Support - Single vs multi-tenant patterns
Key Files
SKILL.md- Complete documentationtemplates/msal-config.ts- MSAL configurationtemplates/msal-provider.tsx- React provider setuptemplates/protected-route.tsx- Auth-protected component wrappertemplates/workers-jwt-validation.ts- Cloudflare Workers token validationrules/azure-auth.md- Correction rules for common mistakesreferences/aadsts-error-codes.md- Error code reference
Critical Notes
- MSAL.js does NOT work in Cloudflare Workers - Use jose library for backend
- Azure AD JWKS URL is non-standard - Fetch from openid-configuration first
- SPA refresh tokens expire in 24 hours - Handle InteractionRequiredAuthError
- storeAuthStateInCookie: true - Required for Safari/Edge compatibility
- Azure AD B2C sunset (complete, May 2025) - Use Entra External ID for new consumer apps
- ADAL retirement (complete, Sept 2025) - Migrate from ADAL to MSAL; no more security updates
Package Versions
{
"@azure/msal-react": "3.0.23",
"@azure/msal-browser": "4.27.0",
"jose": "5.9.6"
}