मुख्य सामग्री पर जाएँ
Skillpedia
सिक्योरिटी48k · #3841

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 पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/auth-implementation-patterns/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

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.md for 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.

repo: sickn33/agentic-awesome-skills

लोकप्रियता

GitHub स्टार
48k
रैंकिंग में स्थान
#3841
लाइसेंस
MIT
अपडेट की गई
15/10/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

00-andruia-consultant

48k

आपके एजेंट को AI प्रोजेक्ट शुरू करने या उन्हें बेहतर बनाने में मदद करता है। यह code का विश्लेषण करता है, tools सुझाता है और स्पेनिश भाषा में action plan बनाता है।

AI और एजेंटएजेंट

007

48k

आपका एजेंट security audit और threat modeling करता है। यह प्रोजेक्ट को हमलों और कमजोरियों से बचाने में काम आता है।

कोडिंगसिक्योरिटी

10-andruia-skill-smith

48k

आपके एजेंट को AI tools बनाने या उन्हें बेहतर करने में मदद करता है। यह तय करता है कि tools कैसे काम करेंगे, documentation लिखता है और structure की जांच करता है।

AI और एजेंटएजेंट

20-andruia-niche-intelligence

48k

आपका एजेंट किसी खास industry का summary बनाता है। भरोसेमंद स्रोतों की मदद से यह प्रोजेक्ट का संदर्भ, नियम, इस्तेमाल के तरीके और जोखिम समझने में मदद करता है।

लेखन और डॉक्यूमेंटरिसर्च

मिलती-जुलती skills