CommunityCodierung & Entwicklunggithub.com

mianhtsys/landingMod3

Authentifizierungs- und Autorisierungsmuster beherrschen – inklusive JWT, OAuth2, Sitzungsverwaltung und RBAC – um sichere, skalierbare Zugriffskontrollsysteme zu erstellen. Verwenden Sie dies bei der Implementierung von Authentifizierungssystemen, der Absicherung von APIs oder der Fehlersuche bei Sicherheitsproblemen.

Was ist landingMod3?

Dieses Skill bietet eine umfassende Anleitung zur Implementierung von Authentifizierungs- und Autorisierungsmustern mit modernen Best Practices. Es behandelt die grundlegenden Konzepte von Authentifizierung (AuthN) und Autorisierung (AuthZ) und erklärt verschiedene Authentifizierungsstrategien wie sitzungsbasierte Verfahren, tokenbasierte Verfahren mit JWT sowie OAuth2/OpenID Connect. Der Skill ist besonders nützlich für Entwickler, die Benutzerauthentifizierungssysteme implementieren, REST- oder GraphQL-APIs absichern, OAuth2/soziale Logins einbinden oder rollenbasierte Zugriffskontrollen (RBAC) entwerfen müssen. Er unterstützt die Fehlersuche bei Authentifizierungsproblemen, die Migration von Authentifizierungssystemen und die Implementierung von Single Sign-On (SSO) oder Multi-Tenancy. Das Skill enthält eine detaillierte Referenz in `references/details.md` für komplexe Szenarien, bewährte Verfahren wie Hashing von Passwörtern, HTTPS, kurzlebige Zugriffstoken und sichere Cookies sowie eine Liste häufiger Fehlerquellen wie schwache Passwörter, falsche JWT-Speicherung und fehlende Ratenbegrenzung. Es kann in allen gängigen KI-Agenten-Plattformen wie Claude Code, Cursor oder Codex verwendet werden.

Funktioniert mit~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/mianhtsys/landingMod3/tree/HEAD/MODULO_3_DESARROLLO_AL_LADO_DEL_CLIENTE_Y_SERVIDOR_WEB/architecture-skills-framework/.agents/skills/auth-implementation-patterns

Installed? Explore more Codierung & Entwicklung skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

In Ihrer bevorzugten KI fragen

Öffnet einen neuen Chat, in dem dieser Agent-Skill bereits geladen ist.

Dokumentation

Authentifizierungs- & Autorisierungs-Implementierungsmuster

Erstellen Sie sichere, skalierbare Authentifizierungs- und Autorisierungssysteme unter Verwendung von Industriestandard-Mustern und modernen Best Practices.

Wann dieses Skill verwendet werden sollte

  • Implementierung von Benutzerauthentifizierungssystemen
  • Absicherung von REST- oder GraphQL-APIs
  • Hinzufügen von OAuth2/sozialen Logins
  • Implementierung der rollenbasierten Zugriffskontrolle (RBAC)
  • Entwurf der Sitzungsverwaltung
  • Migration von Authentifizierungssystemen
  • Fehlersuche bei Authentifizierungsproblemen
  • Implementierung von SSO oder Multi-Tenancy

Kernkonzepte

1. Authentifizierung vs. Autorisierung

Authentifizierung (AuthN): Wer sind Sie?

  • Überprüfung der Identität (Benutzername/Passwort, OAuth, Biometrie)
  • Ausstellung von Berechtigungsnachweisen (Sitzungen, Tokens)
  • Verwaltung von Anmeldung/Abmeldung

Autorisierung (AuthZ): Was dürfen Sie tun?

  • Berechtigungsprüfung
  • Rollenbasierte Zugriffskontrolle (RBAC)
  • Validierung der Ressourceninhaberschaft
  • Durchsetzung von Richtlinien

2. Authentifizierungsstrategien

Sitzungsbasiert:

  • Server speichert Sitzungszustand
  • Sitzungs-ID im Cookie
  • Traditionell, einfach, zustandsbehaftet

Tokenbasiert (JWT):

  • Zustandslos, eigenständig
  • Horizontal skalierbar
  • Kann Ansprüche speichern

OAuth2/OpenID Connect:

  • Delegierung der Authentifizierung
  • Sozialer Login (Google, GitHub)
  • Enterprise-SSO

Detaillierte Muster und ausgearbeitete Beispiele

Die detaillierte Musterdokumentation befindet sich in references/details.md. Lesen Sie diese Datei, wenn die oben genannte Navigationsebene nicht ausreicht.

Best Practices

  1. Speichern Sie niemals Klartext-Passwörter: Hashen Sie immer mit bcrypt/argon2
  2. Verwenden Sie HTTPS: Verschlüsseln Sie Daten während der Übertragung
  3. Kurzlebige Zugriffstoken: Maximal 15–30 Minuten
  4. Sichere Cookies: httpOnly, secure, sameSite-Flags
  5. Validieren Sie alle Eingaben: E-Mail-Format, Passwortstärke
  6. Ratenbegrenzung für Authentifizierungsendpunkte: Verhindern Sie Brute-Force-Angriffe
  7. Implementieren Sie CSRF-Schutz: Für sitzungsbasierte Authentifizierung
  8. Rotieren Sie Geheimnisse regelmäßig: JWT-Geheimnisse, Sitzungsgeheimnisse
  9. Protokollieren Sie Sicherheitsereignisse: Anmeldeversuche, fehlgeschlagene Authentifizierung
  10. Verwenden Sie MFA, wenn möglich: Zusätzliche Sicherheitsebene

Häufige Fehlerquellen

  • Schwache Passwörter: Erzwingen Sie strenge Passwortrichtlinien
  • JWT im localStorage: Anfällig für XSS, verwenden Sie httpOnly-Cookies
  • Kein Token-Ablauf: Tokens sollten ablaufen
  • Nur clientseitige Authentifizierungsprüfungen: Validieren Sie immer serverseitig
  • Unsicheres Zurücksetzen von Passwörtern: Verwenden Sie sichere Tokens mit Ablaufzeit
  • Keine Ratenbegrenzung: Anfällig für Brute-Force
  • Vertrauen auf Client-Daten: Validieren Sie immer serverseitig

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

mianhtsys/landingMod3

Implement WCAG 2.2 compliant interfaces with mobile accessibility, inclusive design patterns, and assistive technology support. Use when auditing accessibility, implementing ARIA patterns, building for screen readers, or ensuring inclusive user experiences.

mianhtsys/landingMod3

Master REST and GraphQL API design principles to build intuitive, scalable, and maintainable APIs that delight developers. Use when designing new APIs, reviewing API specifications, or establishing API design standards.

mianhtsys/landingMod3

Diseña y compara alternativas arquitectónicas trazables a RF/RNF sin implementar código.

mianhtsys/landingMod3

Implement proven backend architecture patterns including Clean Architecture, Hexagonal Architecture, and Domain-Driven Design. Use this skill when designing clean architecture for a new microservice, when refactoring a monolith to use bounded contexts, when implementing hexagonal or onion architecture patterns, or when debugging dependency cycles between application layers.

mianhtsys/landingMod3

Revisión adversarial de la arquitectura contra RF/RNF, detectando contradicciones, cobertura faltante y complejidad innecesaria.

mianhtsys/landingMod3

>- Generate grounded-and-verified, engine-agnostic database documentation that reaches 100% parity with the real schema. Introspects the LIVE database as ground truth and cross-validates it against ORM models, migrations, generated types, seeds, and application queries, then proves completeness by diffing the docs back against the database. Produces ER diagrams (mermaid), per-table data dictionaries, and a machine-readable schema.json. Works with PostgreSQL, MySQL, SQL Server, and SQLite across any ORM (Prisma, TypeORM, Drizzle, Sequelize, Knex, Django, Rails) or raw SQL. Use when asked to document a database, produce an ERD or data dictionary, write db/schema docs, audit schema drift, or refresh existing DB docs.

mianhtsys/landingMod3

Compara estrategias de persistencia y motores de datos según consistencia, concurrencia, volumen, recuperación y operación.

mianhtsys/landingMod3

Design robust, scalable database schemas for SQL and NoSQL databases. Provides normalization guidelines, indexing strategies, migration patterns, constraint design, and performance optimization. Ensures data integrity, query performance, and maintainable data models.

mianhtsys/landingMod3

Consolida análisis especializados en una recomendación arquitectónica, matriz de decisión, ADR y plan de validación.

mianhtsys/landingMod3

Master error handling patterns across languages including exceptions, Result types, error propagation, and graceful degradation to build resilient applications. Use when implementing error handling, designing APIs, or improving application reliability.

mianhtsys/landingMod3

Build and maintain web frontends — component architecture, state management, API integration, responsive layout, client-side performance, and frontend testing patterns. Framework agnostic, focused on web frontend implementation. Do not use for backend service implementation, data engineering, or platform infrastructure work.

mianhtsys/landingMod3

Evalúa despliegue, contenedores, escalado, alta disponibilidad, observabilidad, backup, recuperación y CI/CD de forma proporcional.

mianhtsys/landingMod3

Execute read-only SQL queries against multiple Microsoft SQL Server databases. Use when: (1) querying MSSQL/SQL Server databases, (2) exploring database schemas/tables, (3) running SELECT queries for data analysis, (4) checking database contents. Supports multiple database connections with descriptions for intelligent auto-selection. Blocks all write operations (INSERT, UPDATE, DELETE, DROP, etc.) for safety.

mianhtsys/landingMod3

Generate and maintain OpenAPI 3.1 specifications from code, design-first specs, and validation patterns. Use when creating API documentation, generating SDKs, or ensuring API contract compliance.

mianhtsys/landingMod3

PHP 8.0+ development — XAMPP, RESTful APIs, PDO/MySQL/MariaDB, and authentication. Use when building PHP backends, creating API endpoints, configuring XAMPP, or integrating PHP with databases.

mianhtsys/landingMod3

Use this skill when designing or reviewing a PostgreSQL-specific schema. Covers best-practices, data types, indexing, constraints, performance patterns, and advanced features

mianhtsys/landingMod3

Analiza requisitos funcionales y no funcionales, reglas, restricciones, capacidad y ambigüedades antes de seleccionar tecnologías.

mianhtsys/landingMod3

Implement modern responsive layouts using container queries, fluid typography, CSS Grid, and mobile-first breakpoint strategies. Use when building adaptive interfaces, implementing fluid layouts, or creating component-level responsive behavior.

mianhtsys/landingMod3

>- Use when designing or implementing software securely: define security requirements, threat-model a feature, choose secure defaults, design authentication and authorization, handle untrusted data and secrets, evaluate dependencies, design multi-tenant trust boundaries, or review security-sensitive changes. Use for prevention during requirements, design, implementation, and review; not for post-build security assessments or scanning an existing codebase.

mianhtsys/landingMod3

Revisa seguridad arquitectónica, identidad, autorización, secretos, APIs, auditoría, fraude y resiliencia antes de implementar.

Verwandte Skills