본문으로 건너뛰기
Skillpedia
보안48k · #3841

auth-implementation-patterns

하는 일

애플리케이션의 보안 체계를 만들고 점검하도록 돕는 도구입니다. 허가된 사용자만 특정 정보와 기능에 접근할 수 있도록 합니다.

사용하는 경우

  • ✓사용자가 앱에 로그인하는 시스템을 만들 때.
  • ✓앱의 정보를 허가되지 않은 접근으로부터 보호해야 할 때.
  • ✓‘Google로 로그인’이나 ‘Facebook으로 로그인’ 같은 로그인 방식을 추가할 때.

스킬 링크

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에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/auth-implementation-patterns/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“관리자만 매출 보고서를 볼 수 있도록 보안을 설정해 주세요.”

매주 새 스킬 5개. 읽는 데 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.
자주 묻는 질문

‘토큰’, ‘세션’, ‘리소스 접근 경계’는 무엇인가요?

앱이 사용자가 누구인지 기억하는 방법(세션, 토큰)과 사용자가 무엇을 할 수 있는지 정하는 방식(접근 경계)입니다.

‘RBAC’는 무엇인가요?

‘Role-Based Access Control’의 약자로, 관리자나 일반 사용자처럼 역할에 따라 다른 권한을 주는 방식입니다.

‘OAuth2’나 ‘SSO’는 무엇인가요?

OAuth2는 Google 같은 기존 계정으로 다른 앱에 접근하는 방식이고, 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
업데이트
2026. 10. 15.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬