webiny-configure-okta
What it does
This skill guides your AI through setting up Okta as the login provider for a Webiny project. It is for developers whose company uses Okta for single sign-on.
When to use it
- ✓When you want Okta to replace Cognito for signing in to a Webiny project.
- ✓When Okta token claims must be mapped to Webiny identity data.
- ✓When you need to set the Okta issuer and client ID environment variables.
Skill link
https://github.com/webiny/webiny-js/blob/next/skills/user-skills/configure-okta/SKILL.mdCopy 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
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Switch our Webiny project to Okta login and map the email claim from Okta tokens.”
5 new skills a week. 1 minute to read.
How it works
The skill explains installing the Okta package, writing a config class that maps token claims, and adding an Okta extension component in the configuration file. The issuer and client ID are set as environment variables before deploying.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Configure Okta Authentication
TL;DR
Webiny supports Okta as an external identity provider (IDP) to replace the default Cognito authentication. First, install the @webiny/okta package (using the same version as the webiny dependency in package.json). Then create two files: an API config class that maps Okta JWT claims to Webiny identity data (OktaIdpConfig), and a React extension component (<Okta />) that wires issuer URL, client ID, and the API config path. Register the extension in webiny.config.tsx, set two environment variables (OKTA_ISSUER, OKTA_CLIENT_ID), and deploy.
Pattern / Core Concept
Okta integration has two parts:
- API Config — A class implementing
OktaIdpConfig.Interfacethat maps JWT token claims to Webiny's identity structure. Registered viaOktaIdpConfig.createImplementation()(the universal DI pattern). - Extension Component — A React component that renders
<Okta />from@webiny/okta, passing the issuer URL, client ID, and path to the API config file. The<Okta />component handles environment variable injection, API extension registration, and Admin login screen setup automatically.
How <Okta /> Works Internally
The <Okta /> component (from @webiny/okta) is a defineExtension that:
- Sets Lambda env vars:
OKTA_ISSUER,OKTA_CLIENT_ID - Sets Admin app env vars:
REACT_APP_IDP_TYPE=okta,REACT_APP_OKTA_ISSUER,REACT_APP_OKTA_CLIENT_ID - Registers the internal
OktaIdpFeatureAPI extension (OIDC token verification) - Registers your custom API config extension (identity mapping)
- Registers the Admin Okta login screen extension
Reference Tables
OktaIdpConfig.Interface
| Method | Signature | Required | Description |
|---|---|---|---|
getIdentity |
(token: JwtPayload) => OktaIdentity | Promise<OktaIdentity> |
Yes | Maps JWT claims to Webiny identity data |
verifyTokenClaims |
(token: JwtPayload) => void | Promise<void> |
No | Custom claim verification (throw to reject the token) |
OktaIdentity (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) |
<Okta /> Component Props
| Prop | Type | Description |
|---|---|---|
issuer |
string |
Okta issuer URL (e.g., https://dev-xxx.okta.com) |
clientId |
string |
Okta application client ID |
apiConfig |
string |
Absolute path to the API config file |
Environment Variables
| Variable | Used By | Description |
|---|---|---|
OKTA_ISSUER |
API + Admin | Okta issuer URL |
OKTA_CLIENT_ID |
API + Admin | Okta application client ID |
Full Examples
Example 1: Basic Okta Configuration
Step 0: Install the @webiny/okta dependency
@webiny/okta 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/okta with the same version
# For example, if "webiny": "^0.0.0-unstable.xxx":
yarn add @webiny/okta@^0.0.0-unstable.xxx
Important: After adding the dependency, tell the user to run
yarnto install it. Do NOT runyarnautomatically — let the user do it.
FAQ
Which environment variables are used?
OKTA_ISSUER and OKTA_CLIENT_ID.
Does Okta replace Cognito?
Yes. The skill describes Okta as a replacement for the default Cognito authentication.
Can the login flow be customized?
Yes. The skill mentions customizing the Okta login flow.
Details
Original description by the author
Configuring Okta as an identity provider (IDP) for Webiny projects. Use this skill when the developer asks about Okta authentication, Okta SSO, replacing Cognito with Okta, setting up external identity providers, configuring OIDC authentication, mapping JWT claims to Webiny identities, or customizing the Okta login flow. Also relevant when asking about OKTA_ISSUER, OKTA_CLIENT_ID environment variables, OktaIdpConfig, or the MyOktaExtension pattern.
repo: webiny/webiny-js
Popularity
- GitHub stars
- 8.1k
- Ranking position
- #12597
- License
- —
- Updated
- 11/2/2026
Comments
- …
More skills from this repository
prd-to-plan
8.1kHelps your agent turn a product requirements document into a phased plan of small end-to-end slices, saved as a Markdown file.
webiny-admin-architect
8.1kTeaches your agent how to build admin screens for the Webiny platform, using its business logic layers and presenter pattern.
webiny-admin-permissions
8.1kTeaches your agent to add permission controls to Webiny admin screens, including auto-generated permission forms and hide-or-show checks.
webiny-form-model
8.1kTeaches your agent to build forms in Webiny using a declarative field builder, layouts, validation and conditional rules.
Similar skills
reverse-engineer-anything
422kHelps your agent look inside shipped apps and packages to explain features, compare versions, or guide a rebuild, using the REA tool.
1password
394kHelps your agent set up the 1Password CLI, sign in, and read or inject secrets without printing their values into chat.
healthcheck
394kHelps your agent audit the computer or server that runs OpenClaw for security risks, such as SSH, firewall, updates, and backups, then suggest safe fixes.