webiny-configure-okta
यह क्या करती है
यह स्किल आपके AI को Webiny प्रोजेक्ट के लिए Okta को लॉगिन प्रोवाइडर के रूप में सेट करने में मार्गदर्शन देती है। यह उन डेवलपर्स के लिए है जिनकी कंपनी single sign-on के लिए Okta इस्तेमाल करती है।
कब इस्तेमाल करें
- ✓जब आप चाहते हों कि Webiny प्रोजेक्ट में साइन इन के लिए Okta, Cognito की जगह ले।
- ✓जब Okta टोकन claims को Webiny identity डेटा से मैप करना हो।
- ✓जब आपको Okta issuer और client ID के environment variables सेट करने हों।
Skill का लिंक
https://github.com/webiny/webiny-js/blob/next/skills/user-skills/configure-okta/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“हमारे Webiny प्रोजेक्ट को Okta लॉगिन पर ले जाइए और Okta टोकन से ईमेल claim मैप कीजिए।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
स्किल Okta पैकेज इंस्टॉल करना, टोकन claims मैप करने वाली config क्लास लिखना, और कॉन्फ़िगरेशन फ़ाइल में Okta एक्सटेंशन कॉम्पोनेंट जोड़ना समझाती है। डिप्लॉय से पहले issuer और client ID environment variables में सेट होते हैं।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे 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.
अक्सर पूछे जाने वाले सवाल
कौन से environment variables इस्तेमाल होते हैं?
OKTA_ISSUER और OKTA_CLIENT_ID।
क्या Okta Cognito को बदलता है?
हाँ। स्किल Okta को डिफ़ॉल्ट Cognito ऑथेंटिकेशन की जगह बताती है।
क्या लॉगिन फ़्लो कस्टमाइज़ हो सकता है?
हाँ। स्किल Okta लॉगिन फ़्लो को कस्टमाइज़ करने का ज़िक्र करती है।
जानकारी
लेखक का मूल विवरण
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
लोकप्रियता
- GitHub स्टार
- 8.1k
- रैंकिंग में स्थान
- #12597
- लाइसेंस
- —
- अपडेट की गई
- 2/11/2026
कमेंट
- …
इस repository की और skills
prd-to-plan
8.1kयह आपके एजेंट को प्रोडक्ट आवश्यकताओं के दस्तावेज़ को छोटे, एंड-टू-एंड स्लाइस की चरणबद्ध योजना में बदलने में मदद करती है, जो Markdown फ़ाइल में सहेजी जाती है।
webiny-admin-architect
8.1kयह आपके एजेंट को Webiny प्लेटफ़ॉर्म के लिए एडमिन स्क्रीन बनाना सिखाती है, उसकी बिज़नेस लॉजिक परतों और presenter पैटर्न का उपयोग करके।
webiny-admin-permissions
8.1kयह आपके एजेंट को Webiny एडमिन स्क्रीन में अनुमति नियंत्रण जोड़ना सिखाती है, जिसमें अपने-आप बनने वाले अनुमति फ़ॉर्म और दिखाने-छिपाने की जाँच शामिल हैं।
webiny-form-model
8.1kयह आपके एजेंट को Webiny में declarative field builder, layouts, validation और शर्त वाले नियमों से फ़ॉर्म बनाना सिखाती है।
मिलती-जुलती skills
reverse-engineer-anything
422kयह आपके एजेंट को REA टूल से शिप हुई ऐप्स और पैकेज को अंदर से समझने, वर्ज़न की तुलना करने या दोबारा बनाने में मदद करती है।
1password
394kयह आपके एजेंट को 1Password CLI सेट करने, साइन इन करने और सीक्रेट्स की वैल्यू चैट में छापे बिना उन्हें पढ़ने या इस्तेमाल करने में मदद करती है।
healthcheck
394kयह आपके एजेंट को उस कंप्यूटर या सर्वर का सुरक्षा ऑडिट करने देती है जिस पर OpenClaw चलता है, जिसमें SSH, firewall, अपडेट और बैकअप शामिल हैं, और फिर सुरक्षित सुधार सुझाती है।