auth-implementation-patterns
Framework-agnostic authentication and authorization design: JWT, OAuth2/OpenID Connect, session versus token, refresh-token rotation, RBAC and ABAC, SSO, API…
Skill by wshobson
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/walthergl66-auth-implementation-patterns
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: design, backend, security
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/auth-implementation-patterns
What's inside
- Skill name
auth-implementation-patterns- Description
- Framework-agnostic authentication and authorization design: JWT, OAuth2/OpenID Connect, session versus token, refresh-token rotation, RBAC and ABAC, SSO, API keys, and multi-tenancy. Use when implementing an auth system, securing an API, or debugging login, token, or permission logic. Triggers include "JWT", "OAuth2", "OIDC", "refresh token", "session cookie", "RBAC", "ABAC", "SSO", "multi-tenant", "API key". Do not use for the Spring Security filter chain or Java security config - use spring-boot-security. Do not use for NestJS guards, pipes, and interceptors - use nestjs-features-performance. This skill decides the scheme; the framework skill decides the wiring.
- License
- MIT
- Metadata
- author: wshobson · version: 1.0.0
- Instructions
- 89 lines in SKILL.md · view on GitHub
Files (3)
- SKILL.md
- evals.json · evals/
- details.md · references/
SKILL.md (first lines)
# Authentication & Authorization Implementation Patterns Build secure, scalable authentication and authorization systems using industry-standard patterns and modern best practices. ## When to Use This Skill - Implementing user authentication systems - Securing REST or GraphQL APIs - Adding OAuth2/social login - Implementing role-based access control (RBAC) - Designing session management - Migrating authentication systems - Debugging auth issues - Implementing SSO or multi-tenancy ## Boundaries This skill owns the framework-agnostic scheme. It does not own framework wiring: - Spring Security filter chain, `SecurityFilterChain`, `@PreAuthorize`, `JwtDecoder` beans → `spring-boot-security`. - NestJS guards, pipes, interceptors, exception filters → `nestjs-features-performance`. When both apply, decide the scheme here (session versus token, OAuth2 flow, RBAC model) and implement the wiring in the framework skill. ## Core Concepts ### 1. Authentication vs Authorization **Authentication (AuthN)**: Who are you? - Verifying identity (username/password, OAuth, biometrics) - Issuing credentials (sessions, tokens) - Managing login/logout **Authorization (AuthZ)**: What can you do? - Permission checking - Role-based access control (RBAC) - Resource ownership validation - Policy enforcement ### 2. Authentication Strategies **Session-Based:** - Server stores session state - Session ID in cookie - Traditional, simple, stateful **Token-Based (JWT):** - Stateless, self-contained - Scales horizontally - Can store claims **OAuth2/OpenID Connect:** - Delegate authentication - Social login (Google, GitHub) - Enterprise SSO ## Detailed patterns and worked examples Detailed pattern documentation lives in `references/details.md`. Read that file when the navigation tier above is insufficient. ## Best Practices 1. **Never Store Plain Passwords**: Always hash with bcrypt/argon2 2. **Use HTTPS**: Encrypt data in transit 3. **Short-Lived Access Tokens**: 15-30 minutes max 4. **Secure Cookies**: httpOnly, secure, sameSite flags 5. **Validate All Input**: Email format, password strength 6. **Rate Limit Auth Endpoints**: Prevent brute force attacks 7. **Implement CSRF Protection**: For session-based auth 8. **Rotate Secrets Regularly**: JWT secrets, session secrets 9. **Log Security Events**: Login attempts, failed auth 10. **Use MFA When Possible**: Extra security layer ## Common Pitfalls - **Weak Passwords**: Enforce strong password policies - **JWT in localStorage**: Vulnerable to XSS, use httpOnly cookies - **No Token Expiration**: Tokens should expire - **Client-Side Auth Checks Only**: Always validate server-side - **Insecure Password Reset**: Use secure tokens with expiration - **No Rate Limiting**: Vulnerable to brute force - **Trusting Client Data**: Always validate on server
From Walthergl66/mis-skills, MIT.
More from Walthergl66/mis-skills
- 0.565score
clean-skill-install
Walthergl66
Use when the user asks an agent to install, add, import, update, or publish skills in this repository.
SkillAFreshness: AClaude Code +9 - 0.539score
caveman
juliusbrussee
Ultra-compressed communication mode.
SkillAFreshness: AClaude Code +9 - 0.444score
clean-architecture
wondelai
Structure software around the Dependency Rule: source code dependencies point inward from frameworks to use cases to entities.
SkillAFreshness: AClaude Code +9
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Oct 10, 2026 (18 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- Version
- 1.0.0
- License
- MIT
- Repository
- github.com/Walthergl66/mis-skills
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from wshobson
- 0.725score
AGENTS.md · wshobson/agents
wshobson
AGENTS.md from wshobson/agents: 85 lines covering Map, Working in this repo, Quality gates (run these before pushing), Regenerating per-harness artifacts and…
TemplateAFreshness: A★ 41.6KCodex +5 - 0.671score
Cursor rules · wshobson/agents
wshobson
3 Cursor rule files from wshobson/agents: 000-project-conventions, 010-python-tooling, 020-agent-skill-authoring.
TemplateBFreshness: B★ 41.6KCursor
Cite this page
auth-implementation-patterns skill. Agent Mart. https://agentmart.dev/skills/walthergl66-auth-implementation-patterns (last updated 2026-10-24)