Skip to content
Skillpedia
Security8.1k · #12607

webiny-api-security-catalog

What it does

This skill is a lookup list for the security and authentication pieces of the Webiny backend. It is for developers writing code that handles sign-in, API keys or access roles.

When to use it

  • ✓When you need the import path for an authentication or API key building block.
  • ✓When you want to hook into the lifecycle of an API key, user, role or team.
  • ✓When you are working on access or sign-in code in the Webiny backend.

Skill link

https://github.com/webiny/webiny-js/blob/next/skills/user-skills/generated/api/security/SKILL.md

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/webiny/webiny-js/blob/next/skills/user-skills/generated/api/security/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

Example of what to ask your AI

“Which event handler do I import to run code after an API key is created in Webiny?”

5 new skills a week. 1 minute to read.

How it works

The skill lists each security building block with its import line, source file and a short description. It tells the AI to read the source for the exact interface before using one.

Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

API — Security & Auth

Authentication, API keys, roles, users, teams event handlers and use cases.

How to Use

  1. Find the abstraction you need below
  2. You MUST read the source file to get the exact interface and types!
  3. Import: import { Name } from "<importPath>";
  4. See webiny-use-case-pattern or webiny-event-handler-pattern skills 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

FAQ

How many items does it list?

The description says 53 abstractions.

Which areas are covered?

Authentication, API keys, roles, users and teams.

Does it include event handlers?

Yes. The entries include lifecycle event handlers such as the one after API key creation.

Details

Original description by the author

API — Security & Auth — 53 abstractions. Authentication, API keys, roles, users, teams event handlers and use cases.

repo: webiny/webiny-js

Popularity

GitHub stars
8.1k
Ranking position
#12607
License
—
Updated
11/2/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills