What problem does it solve? It prevents inconsistent authentication and authorization implementations in a .NET BFF architecture, such as tokens leaking to the browser, divergent user ID extraction helpers, and UI gating that drifts from the server authorization contract. ## Core Features & Use Cases - BFF Token Handling Rules: Keeps tokens in HttpOnly cookies and forwards Bearer tokens to the API so the browser never sees them. - Canonical Identity Extraction: Pins a single claim chain (sub, nameidentifier, sid, internal_user_id) via GetPlatformUserId, with mediator-based resolution for ATProto DIDs and Google subjects. - Authorization Pipeline Guidance: Documents JWT aud/azp validation, AuthorizationBehavior routing to Cerbos or FallbackAuthorizationService, and HATEOAS _links as the only client-side gating source. - Use Case: When fixing a 401/403 bug or adding an authorized endpoint, load this Skill to apply the correct claim extraction, endpoint protection defaults, and verification test commands. ## Quick Start Ask the AI to review your new authorized endpoint or authentication change against the auth-patterns rules before committing.