webiny-api-security-catalog
Skill này làm gì
Skill này là danh sách tra cứu các phần bảo mật và xác thực trong backend Webiny. Skill dành cho lập trình viên viết code xử lý đăng nhập, API key hoặc vai trò truy cập.
Khi nào nên dùng
- ✓Khi bạn cần đường dẫn import cho một khối xác thực hoặc API key.
- ✓Khi bạn muốn gắn vào vòng đời của API key, người dùng, vai trò hoặc nhóm.
- ✓Khi bạn đang làm code truy cập hoặc đăng nhập trong backend Webiny.
Liên kết skill
https://github.com/webiny/webiny-js/blob/next/skills/user-skills/generated/api/security/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Tôi nên import event handler nào để chạy code sau khi một API key được tạo trong Webiny?”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Skill liệt kê từng khối bảo mật kèm dòng import, file nguồn và mô tả ngắn. Skill yêu cầu AI đọc file nguồn để lấy đúng interface trước khi dùng.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
API — Security & Auth
Authentication, API keys, roles, users, teams event handlers and use cases.
How to Use
- Find the abstraction you need below
- You MUST read the source file to get the exact interface and types!
- Import:
import { Name } from "<importPath>"; - See
webiny-use-case-patternorwebiny-event-handler-patternskills for implementation patterns
Abstractions
Name: AfterAuthenticationEventHandler
Import: import { AfterAuthenticationEventHandler } from "webiny/api/security/authentication"
Source: @webiny/api-core/features/security/authentication/AuthenticationContext/index.ts
Description: Hook into authentication lifecycle after authentication occurs.
Name: ApiKeyAfterCreateEventHandler
Import: import { ApiKeyAfterCreateEventHandler } from "webiny/api/security/api-key"
Source: @webiny/api-core/features/security/apiKeys/CreateApiKey/index.ts
Description: Hook into API key lifecycle after an API key is created.
Name: ApiKeyAfterDeleteEventHandler
Import: import { ApiKeyAfterDeleteEventHandler } from "webiny/api/security/api-key"
Source: @webiny/api-core/features/security/apiKeys/DeleteApiKey/index.ts
Description: Hook into API key lifecycle after an API key is deleted.
Name: ApiKeyAfterUpdateEventHandler
Import: import { ApiKeyAfterUpdateEventHandler } from "webiny/api/security/api-key"
Source: @webiny/api-core/features/security/apiKeys/UpdateApiKey/index.ts
Description: Hook into API key lifecycle after an API key is updated.
Name: ApiKeyBeforeCreateEventHandler
Import: import { ApiKeyBeforeCreateEventHandler } from "webiny/api/security/api-key"
Source: @webiny/api-core/features/security/apiKeys/CreateApiKey/index.ts
Description: Hook into API key lifecycle before an API key is created.
Name: ApiKeyBeforeDeleteEventHandler
Import: import { ApiKeyBeforeDeleteEventHandler } from "webiny/api/security/api-key"
Source: @webiny/api-core/features/security/apiKeys/DeleteApiKey/index.ts
Description: Hook into API key lifecycle before an API key is deleted.
Name: ApiKeyBeforeUpdateEventHandler
Import: import { ApiKeyBeforeUpdateEventHandler } from "webiny/api/security/api-key"
Source: @webiny/api-core/features/security/apiKeys/UpdateApiKey/index.ts
Description: Hook into API key lifecycle before an API key is updated.
Name: ApiKeyFactory
Import: import { ApiKeyFactory } from "webiny/api/security/api-key"
Source: @webiny/api-core/features/security/apiKeys/shared/abstractions.ts
Description: Provide code-defined API keys.
Name: ApiKeyFactory
Import: import { ApiKeyFactory } from "webiny/api/security"
Source: @webiny/api-core/features/security/apiKeys/shared/abstractions.ts
Description: Provide code-defined API keys.
Name: ApiToken
Import: import { ApiToken } from "webiny/api/security"
Source: @webiny/api-core/domain/security/ApiToken.ts
Description: Represents an API token identity.
Name: Authenticator
Import: import { Authenticator } from "webiny/api/security"
Source: @webiny/api-core/features/security/authentication/Authenticator/abstractions.ts
Description: Convert an authentication token into identity data.
Name: Authorizer
Import: import { Authorizer } from "webiny/api/security"
Source: @webiny/api-core/features/security/authorization/Authorizer/index.ts
Description: Retrieve permissions for an identity.
Name: BeforeAuthenticationEventHandler
Import: import { BeforeAuthenticationEventHandler } from "webiny/api/security/authentication"
Source: @webiny/api-core/features/security/authentication/AuthenticationContext/index.ts
Description: Hook into authentication lifecycle before authentication occurs.
Name: CreateApiKeyUseCase
Import: import { CreateApiKeyUseCase } from "webiny/api/security/api-key"
Source: @webiny/api-core/features/security/apiKeys/CreateApiKey/index.ts
Description: Create a new API key.
Name: createPermissionsAbstraction
Import: import { createPermissionsAbstraction } from "webiny/api/security"
Source: @webiny/api-core/features/security/permissions/index.ts
Name: createPermissionSchema
Import: `import { createPermissionSchema } from "webiny/api/security
Câu hỏi thường gặp
Danh sách có bao nhiêu mục?
Mô tả nói có 53 abstraction.
Những khu vực nào được bao phủ?
Xác thực, API key, vai trò, người dùng và nhóm.
Có event handler không?
Có. Các mục gồm event handler vòng đời, như handler chạy sau khi API key được tạo.
Chi tiết
Mô tả gốc của tác giả
API — Security & Auth — 53 abstractions. Authentication, API keys, roles, users, teams event handlers and use cases.
repo: webiny/webiny-js
Độ phổ biến
- Sao GitHub
- 8.1k
- Vị trí xếp hạng
- #12607
- Giấy phép
- —
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
prd-to-plan
8.1kGiúp agent của bạn biến tài liệu yêu cầu sản phẩm thành kế hoạch theo giai đoạn gồm các lát cắt đầu-cuối nhỏ, lưu thành file Markdown.
webiny-admin-architect
8.1kDạy agent của bạn cách xây dựng màn hình quản trị cho nền tảng Webiny, dùng các tầng logic nghiệp vụ và mẫu presenter.
webiny-admin-permissions
8.1kDạy agent của bạn thêm kiểm soát quyền vào màn hình quản trị Webiny, gồm form quyền tự sinh và kiểm tra ẩn hoặc hiện.
webiny-form-model
8.1kDạy agent của bạn xây dựng form trong Webiny bằng trình tạo trường khai báo, bố cục, kiểm tra hợp lệ và quy tắc có điều kiện.
Skill tương tự
reverse-engineer-anything
422kGiúp agent của bạn xem bên trong các app và package đã phát hành để giải thích tính năng, so sánh phiên bản hoặc hướng dẫn dựng lại bằng công cụ REA.
1password
394kGiúp agent của bạn cài đặt CLI của 1Password, đăng nhập, và đọc hoặc đưa thông tin bí mật vào mà không in giá trị ra cuộc trò chuyện.
healthcheck
394kGiúp agent của bạn rà soát bảo mật máy tính hoặc máy chủ đang chạy OpenClaw, như SSH, tường lửa, cập nhật và sao lưu, rồi đề xuất cách sửa an toàn.