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가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
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.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.
자주 묻는 질문
‘토큰’, ‘세션’, ‘리소스 접근 경계’는 무엇인가요?
앱이 사용자가 누구인지 기억하는 방법(세션, 토큰)과 사용자가 무엇을 할 수 있는지 정하는 방식(접근 경계)입니다.
‘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.
인기도
- GitHub 스타
- 48k
- 순위
- #3841
- 라이선스
- MIT
- 업데이트
- 2026. 10. 15.
댓글
- …
이 저장소의 다른 스킬
00-andruia-consultant
48k에이전트가 AI 프로젝트를 시작하거나 개선할 수 있도록 코드를 분석하고 스페인어로 실행 계획을 세워 줍니다.
007
48k에이전트가 보안 감사와 위협 모델링을 수행해 공격과 취약점으로부터 프로젝트를 보호하도록 돕습니다.
10-andruia-skill-smith
48k에이전트가 AI 도구의 작동 방식을 정의하고 문서를 쓰며 구조를 검증하도록 돕습니다.
20-andruia-niche-intelligence
48k에이전트가 신뢰할 수 있는 자료를 바탕으로 특정 산업의 맥락, 규칙, 사용 패턴, 위험을 정리한 요약을 만들도록 돕습니다.