auth-implementation-patterns
यह क्या करती है
यह टूल ऐसे एप्लिकेशन के लिए सुरक्षा सिस्टम बनाने और जाँचने में मदद करता है, जिससे सिर्फ़ अधिकृत यूज़र ही कुछ खास जानकारी और फीचर्स तक पहुँच सकें।
कब इस्तेमाल करें
- ✓जब किसी ऐसे सिस्टम को बनाना हो जिससे यूज़र ऐप में लॉगिन कर सकें।
- ✓जब ऐप की जानकारी को बिना अनुमति के एक्सेस से बचाना हो।
- ✓जब 'Google से लॉगिन' या 'Facebook से लॉगिन' जैसे लॉगिन विकल्प जोड़ने हों।
Skill का लिंक
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/auth-implementation-patterns/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“मुझे ऐसी सुरक्षा सेट करने में मदद करो कि सिर्फ़ एडमिनिस्ट्रेटर ही सेल्स रिपोर्ट देख सकें।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
यह देखता है कि आपका ऐप लॉगिन और परमिशन को कैसे संभालता है, और सुझाता है कि डेटा को बचाने और यह तय करने का सबसे अच्छा तरीका क्या है कि कौन क्या कर सकता है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Authentication & Authorization Implementation Patterns
Build secure, scalable authentication and authorization systems using industry-standard patterns and modern best practices.
Use this skill when
- Implementing user authentication systems
- Securing REST or GraphQL APIs
- Adding OAuth2/social login or SSO
- Designing session management or RBAC
- Debugging authentication or authorization issues
Do not use this skill when
- You only need UI copy or login page styling
- The task is infrastructure-only without identity concerns
- You cannot change auth policies or credential storage
Instructions
- Define users, tenants, flows, and threat model constraints.
- Choose auth strategy (session, JWT, OIDC) and token lifecycle.
- Design authorization model and policy enforcement points.
- Plan secrets storage, rotation, logging, and audit requirements.
- If detailed examples are required, open
resources/implementation-playbook.md.
Safety
- Never log secrets, tokens, or credentials.
- Enforce least privilege and secure storage for keys.
Resources
resources/implementation-playbook.mdfor detailed patterns and examples.
Worked example
Input: an Express application accepts a user's login and keeps the pre-login session ID. Read the bundled playbook, regenerate the session after credential verification, save only required identity fields, and verify that the old cookie cannot access /api/profile. Also test failed login, logout and store failure. Expected: successful login changes the session ID; failed login grants no access.
Inputs and prerequisites
Record the installed framework/SDK versions, identity provider, tenant model, credential store and test environment. Supply project-specific database adapters and request schemas; examples are integration sketches, not a runnable identity service.
Limitations
- JWT validation does not establish resource ownership; enforce tenant and object policy on reads and writes.
- Refresh rotation requires atomic persistence and concurrency tests; the issuance example alone does not provide it.
- Cookie flags do not replace CSRF protection, and secure-cookie behavior needs the actual HTTPS/proxy configuration tested.
- Provider integrations and password policies must be checked against current primary documentation and the application's threat model.
अक्सर पूछे जाने वाले सवाल
'token', 'session' और 'resource-access boundaries' क्या हैं?
ये ऐप को याद रखने के तरीके हैं कि आप कौन हैं (session/token), और आपको क्या करने की अनुमति है (access boundaries)।
'RBAC' क्या है?
इसका पूरा नाम 'Role-Based Access Control' है, जिसमें अलग-अलग तरह के यूज़र्स को अलग-अलग परमिशन दी जाती हैं, जैसे एडमिन और सामान्य यूज़र।
'OAuth2' या 'SSO' क्या है?
ये तरीके हैं: किसी मौजूदा अकाउंट (जैसे Google) से दूसरे ऐप में एक्सेस पाना (OAuth2), या एक ही अकाउंट से कई ऐप में लॉगिन करना (SSO - Single Sign-On)।
जानकारी
लेखक का मूल विवरण
Implement or review authentication and authorization with explicit token, session and resource-access boundaries.
लोकप्रियता
- GitHub स्टार
- 48k
- रैंकिंग में स्थान
- #3841
- लाइसेंस
- MIT
- अपडेट की गई
- 15/10/2026
कमेंट
- …
इस repository की और skills
00-andruia-consultant
48kआपके एजेंट को AI प्रोजेक्ट शुरू करने या उन्हें बेहतर बनाने में मदद करता है। यह code का विश्लेषण करता है, tools सुझाता है और स्पेनिश भाषा में action plan बनाता है।
007
48kआपका एजेंट security audit और threat modeling करता है। यह प्रोजेक्ट को हमलों और कमजोरियों से बचाने में काम आता है।
10-andruia-skill-smith
48kआपके एजेंट को AI tools बनाने या उन्हें बेहतर करने में मदद करता है। यह तय करता है कि tools कैसे काम करेंगे, documentation लिखता है और structure की जांच करता है।
20-andruia-niche-intelligence
48kआपका एजेंट किसी खास industry का summary बनाता है। भरोसेमंद स्रोतों की मदद से यह प्रोजेक्ट का संदर्भ, नियम, इस्तेमाल के तरीके और जोखिम समझने में मदद करता है।
मिलती-जुलती skills
reverse-engineer-anything
422kयह आपके एजेंट को REA टूल से शिप हुई ऐप्स और पैकेज को अंदर से समझने, वर्ज़न की तुलना करने या दोबारा बनाने में मदद करती है।
1password
394kयह आपके एजेंट को 1Password CLI सेट करने, साइन इन करने और सीक्रेट्स की वैल्यू चैट में छापे बिना उन्हें पढ़ने या इस्तेमाल करने में मदद करती है।
healthcheck
394kयह आपके एजेंट को उस कंप्यूटर या सर्वर का सुरक्षा ऑडिट करने देती है जिस पर OpenClaw चलता है, जिसमें SSH, firewall, अपडेट और बैकअप शामिल हैं, और फिर सुरक्षित सुधार सुझाती है।