What problem does it solve?
Webiny projects use Cognito authentication by default, and teams that standardize on Auth0 need a clear path to replace it. This Skill guides the full integration: mapping Auth0 JWT claims to Webiny identities, wiring the React extension component, and setting the required environment variables.
Core Features & Use Cases
- Identity Mapping: Implements
Auth0IdpConfig.Interface to convert Auth0 JWT claims (sub, name, email, roles) into Webiny identity data with roles, teams, and profile fields.
- Extension Setup: Creates the
<Auth0 /> React extension component that injects issuer and client ID environment variables, registers OIDC token verification, and configures the Admin login screen.
- Custom Claim Verification: Supports
verifyTokenClaims to reject tokens missing required custom claims or belonging to unauthorized organizations.
- Use Case: A team migrating an enterprise Webiny deployment from Cognito to Auth0 SSO creates
MyAuth0Config.ts and MyAuth0Extension.tsx, registers them in webiny.config.tsx, sets AUTH0_ISSUER and AUTH0_CLIENT_ID, and deploys.
Quick Start
Ask the AI to configure Auth0 as the identity provider for your Webiny project, replacing the default Cognito authentication.