webiny-configure-auth0
O que ela faz
Esta skill orienta sua IA na configuração do Auth0 como provedor de login de um projeto Webiny. É para desenvolvedores que querem o Auth0 no lugar do login padrão do Cognito.
Quando usar
- ✓Quando você quer que o Auth0 substitua o Cognito para entrar em um projeto Webiny.
- ✓Quando as claims JWT do Auth0 precisam ser mapeadas para dados de identidade do Webiny.
- ✓Quando você precisa definir as variáveis de ambiente do emissor e do client ID do Auth0.
Link da skill
https://github.com/webiny/webiny-js/blob/next/skills/user-skills/configure-auth0/SKILL.mdCopie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.
Como usar
O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.
Mensagem pronta para colar
Para Claude Code, Codex ou Cursor: rode na pasta do projeto e a skill fica instalada.
Baixe o SKILL.md e coloque na pasta de skills do seu agente.
Exemplo do que pedir para a IA
“Substitua o login Cognito do nosso projeto Webiny pelo Auth0 e mapeie o e-mail do usuário a partir do token.”
5 skills novas por semana. 1 minuto de leitura.
Como funciona
A skill explica como instalar o pacote do Auth0, escrever uma classe de configuração que mapeia as claims e adicionar um componente de extensão do Auth0 no arquivo de configuração. O emissor e o client ID são definidos como variáveis de ambiente antes do deploy.
Conteúdo técnico (SKILL.md original)
Texto original do autor, em inglês, direto do GitHub.
Configure Auth0 Authentication
TL;DR
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.
Pattern / Core Concept
Auth0 integration has two parts:
- API Config — A class implementing
Auth0IdpConfig.Interfacethat maps JWT token claims to Webiny's identity structure. Registered viaAuth0IdpConfig.createImplementation()(the universal DI pattern). - Extension Component — A React component that renders
<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.
How <Auth0 /> Works Internally
The <Auth0 /> component (from @webiny/auth0) is a defineExtension that:
- Sets Lambda env vars:
AUTH0_ISSUER,AUTH0_CLIENT_ID - Sets Admin app env vars:
REACT_APP_IDP_TYPE=auth0,REACT_APP_AUTH0_ISSUER,REACT_APP_AUTH0_CLIENT_ID - Registers the internal
Auth0IdpFeatureAPI extension (OIDC token verification) - Registers your custom API config extension (identity mapping)
- Registers the Admin Auth0 login screen extension
Reference Tables
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) |
profile |
{ firstName, lastName, email } |
User profile fields |
context |
object |
Runtime data (not stored in DB) |
<Auth0 /> Component Props
| Prop | Type | Description |
|---|---|---|
issuer |
string |
Auth0 issuer URL (e.g., https://your-tenant.auth0.com) |
clientId |
string |
Auth0 application client ID |
apiConfig |
string |
Absolute path to the API config file |
Environment Variables
| Variable | Used By | Description |
|---|---|---|
AUTH0_ISSUER |
API + Admin | Auth0 issuer URL |
AUTH0_CLIENT_ID |
API + Admin | Auth0 application client ID |
Full Examples
Example 1: Basic Auth0 Configuration
Step 0: Install the @webiny/auth0 dependency
@webiny/auth0 is an optional dependency. Add it to package.json using the same version as the webiny dependency, then install:
# Check the webiny version in package.json, then add @webiny/auth0 with the same version
# For example, if "webiny": "^0.0.0-unstable.xxx":
yarn add @webiny/auth0@^0.0.0-unstable.xxx
Important: After adding the dependency, tell the user to r
Perguntas frequentes
Quais variáveis de ambiente são necessárias?
A URL do emissor e o client ID, chamados AUTH0_ISSUER e AUTH0_CLIENT_ID.
O Auth0 substitui o Cognito por completo?
Sim. A skill descreve o Auth0 como substituto da autenticação padrão do Cognito.
Qual versão o pacote deve ter?
A mesma versão da dependência webiny no package.json.
Detalhes
Descrição original do autor
Configuring Auth0 as an identity provider (IDP) for Webiny projects. Use this skill when the developer asks about Auth0 authentication, Auth0 SSO, replacing Cognito with Auth0, setting up external identity providers, configuring OIDC authentication, mapping JWT claims to Webiny identities, or customizing the Auth0 login flow. Also relevant when asking about AUTH0_ISSUER, AUTH0_CLIENT_ID environment variables, Auth0IdpConfig, or the MyAuth0Extension pattern.
repo: webiny/webiny-js
Popularidade
- Estrelas no GitHub
- 8,1 mil
- Posição no ranking
- #12595
- Licença
- —
- Atualizada em
- 02/11/2026
Comentários
- …
Mais skills deste repositório
prd-to-plan
8,1 milAjuda seu agente a transformar um documento de requisitos de produto em um plano em fases, feito de pequenas fatias ponta a ponta, salvo como arquivo Markdown.
webiny-admin-architect
8,1 milEnsina seu agente a criar telas de administração para a plataforma Webiny, usando suas camadas de lógica de negócio e o padrão presenter.
webiny-admin-permissions
8,1 milEnsina seu agente a adicionar controles de permissão às telas administrativas do Webiny, incluindo formulários de permissão gerados automaticamente e verificações de mostrar ou ocultar.
webiny-form-model
8,1 milEnsina seu agente a criar formulários no Webiny usando um construtor declarativo de campos, layouts, validação e regras condicionais.
Skills parecidas
reverse-engineer-anything
422 milAjuda seu agente a analisar apps e pacotes já publicados para explicar recursos, comparar versões ou orientar uma reconstrução, usando a ferramenta REA.
1password
394 milAjuda seu agente a configurar a CLI do 1Password, fazer login e ler ou injetar segredos sem imprimir seus valores no chat.
healthcheck
394 milAjuda seu agente a auditar o computador ou servidor que roda o OpenClaw em busca de riscos como SSH, firewall, atualizações e backups, com correções seguras.