Install any skill in seconds. Free to start, no credit card required.
Get Started Free →webiny/webiny-configure-auth0
Configuring Auth0 as an identity provider (IDP) for Webiny projects.
Passed 20 of 22 test cases with the skill, and 6 of 22 without it.
and 14 more in the full report
14 fixed6 passed either way2 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 14 test cases the skill fixed. Same model, same prompt, with and without the skill.
Do I need to manually configure REACT_APP_IDP_TYPE=auth0 in webiny.config.tsx or .env when setting up Auth0?
| Checked | Without skill | With skill |
|---|---|---|
| Explains that <Auth0 /> automatically configures REACT_APP_IDP_TYPE internally. | Missed | Passed |
The instructions your model reads when the skill loads.
Webiny supports Auth0 as an external identity provider (IDP) to replace the default Cognito authentication. First, install the @webiny/auth0 package (using the same version as the webiny dependency in package.json). Then create two files: an API config class that maps Auth0 JWT claims to Webiny identity data (Auth0IdpConfig), and a React extension component (<Auth0 />) that wires issuer URL, client ID, and the API config path. Register the extension in webiny.config.tsx, set two environment variables (AUTH0_ISSUER, AUTH0_CLIENT_ID), and deploy.
Auth0 integration has two parts:
Auth0IdpConfig.Interface that maps JWT token claims to Webiny's identity structure. Registered via Auth0IdpConfig.createImplementation() (the universal DI pattern).<Auth0 /> from @webiny/auth0, passing the issuer URL, client ID, and path to the API config file. The <Auth0 /> component handles environment variable injection, API extension registration, and Admin login screen setup automatically.<Auth0 /> Works InternallyThe <Auth0 /> component (from @webiny/auth0) is a defineExtension that:
AUTH0_ISSUER, AUTH0_CLIENT_IDREACT_APP_IDP_TYPE=auth0, REACT_APP_AUTH0_ISSUER, REACT_APP_AUTH0_CLIENT_IDAuth0IdpFeature API extension (OIDC token verification)Auth0IdpConfig.Interface| Method | Signature | Required | Description |
|---|---|---|---|
getIdentity | (token: JwtPayload) => Auth0Identity | Promise<Auth0Identity> | Yes | Maps JWT claims to Webiny identity data |
verifyTokenClaims | (token: JwtPayload) => void | Promise<void> | No | Custom claim verification (throw to reject the token) |
Auth0Identity (Return Type of getIdentity)| Field | Type | Description |
|---|---|---|
id | string | Unique user ID (typically token["sub"]) |
displayName | string | User's display name |
roles | string[] | Webiny security roles to assign |
teams | string[] | Webiny teams (optional, filter out falsy values) |
test cases passed, vs 6 / 22 without
Published skills whose descriptions closely match this one, with their headline benchmark lift.
More skills from the same source and nearby in the registry, with their headline benchmark lift.