Master authentication and authorization patterns including JWT, OAuth2, session management, and RBAC to build secure, scalable access control systems. Use when implementing auth systems, securing APIs, or debugging security issues.
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# 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
## 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)
…
The line at the top of this page pins the label git:20251120.288a379, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
GET https://markdownregistry.com/api/v1/artifacts/art_jmsratx4ovnscegc
GET https://markdownregistry.com/api/v1/resolve?ref=hermeticormus/libreuiux-claude-code/auth-implementation-patterns
GET https://markdownregistry.com/api/v1/blob/bbc8c8de4a53d0c99146bb56492b0842a7f049d234cf5628481bc16e5637901b
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
hermeticormus/libreuiux-claude-code · .grok/skills/verify-libreuiux/SKILL.md · Install the LibreUIUX-Claude-Code plugin pack the way a user does, into a clean Claude Code config and a clean Grok…
hermeticormus/libreuiux-claude-code · plugins/agent-orchestration/skills/ui-agent-patterns/SKILL.md · Patterns for delegating UI work to agents: one synthesis agent versus specialized agents, multi-agent pipelines for…
hermeticormus/libreuiux-claude-code · plugins/archetypal-alchemy/skills/archetypal-combinations/SKILL.md · Rules and worked examples for combining an archetype (structure and behavior) with a Major Arcana card (color and mood)…
hermeticormus/libreuiux-claude-code · plugins/archetypal-alchemy/skills/major-arcana/SKILL.md · The 22 Major Arcana cards mapped to color palettes, lighting, gradients, and moods for UI. Use when a design needs a…
hermeticormus/libreuiux-claude-code · plugins/backend-development/skills/api-design-principles/SKILL.md · Master REST and GraphQL API design principles to build intuitive, scalable, and maintainable APIs that delight…
hermeticormus/libreuiux-claude-code · plugins/backend-development/skills/temporal-python-testing/SKILL.md · Test Temporal workflows with pytest, time-skipping, and mocking strategies. Covers unit testing, integration testing…
hermeticormus/libreuiux-claude-code · plugins/blockchain-web3/skills/defi-protocol-templates/SKILL.md · Implement DeFi protocols with production-ready templates for staking, AMMs, governance, and lending systems. Use when…
sickn33/agentic-awesome-skills · plugins/agentic-awesome-skills-claude/skills/auth-implementation-patterns/SKILL.md · Implement or review authentication and authorization with explicit token, session and resource-access boundaries.
wshobson/agents · plugins/developer-essentials/skills/auth-implementation-patterns/SKILL.md · Master authentication and authorization patterns including JWT, OAuth2, session management, and RBAC to build secure…
dicklesworthstone/pi_agent_rust · tests/ext_conformance/artifacts/agents-wshobson/developer-essentials/skills/auth-implementation-patterns/SKILL.md · Master authentication and authorization patterns including JWT, OAuth2, session management, and RBAC to build secure…
hermeticormus/claude-code-game-development · plugins/developer-essentials/skills/auth-implementation-patterns/SKILL.md · Master authentication and authorization patterns including JWT, OAuth2, session management, and RBAC to build secure…
rudycity/superagent · .agents/skills/auth-implementation-patterns/SKILL.md · Master authentication and authorization patterns including JWT, OAuth2, session management, and RBAC to build secure…
fridrichmethod/awesome-skills · skills/auth-implementation-patterns/SKILL.md · Master authentication and authorization patterns including JWT, OAuth2, session management, and RBAC to build secure…
ghosteken/agent-harness · archive/skills-community/auth-implementation-patterns/SKILL.md · Build secure, scalable authentication and authorization systems using industry-standard patterns and modern best…