auth-implementation

Implement authentication and authorization with supported mechanisms. Triggers on "implement auth", "实现认证".

SKILL.md

GitHub

Auth Implementation

When to use

  • Implement authentication and authorization with supported mechanisms.

Not for: security-review for auditing existing security.

Steps

  1. Identify actors, trust boundaries, session lifecycle and provider; check current official guidance.

  2. Implement the chosen flow, secure credential handling, expiration and revocation without custom cryptography.

  3. Enforce server-side ownership and tenant authorization, including login, logout and session renewal behavior.

  4. Test real allowed and denied paths, expiration, revocation and cross-user access in an isolated environment.

Verify

  • Tests cover authentication and object authorization; sessions use supported mechanisms and no secrets leak.

References