handle-authentication

Guide authentication and authorization design for web apps, APIs, and AI agents.

4|1|Updated Dec 30, 2025
One-click install
npx skills add https://github.com/lushly-dev/afd --skill handle-authentication
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: handle-authentication
Source: https://github.com/lushly-dev/afd/tree/main/.claude/skills/handle-authentication
Command: npx skills add https://github.com/lushly-dev/afd --skill handle-authentication

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill provides expert guidance to design and implement secure authentication and authorization systems, protecting your applications and data from unauthorized access.

Core Features & Use Cases

  • Modern Auth Standards: Implement OAuth 2.1, OIDC, and passkeys for secure, passwordless login.
  • Fine-grained Authorization: Design RBAC, ABAC, or ReBAC models using tools like Cedar for precise access control.
  • Use Case: You are building a new SaaS application and need to implement a secure login flow that supports both traditional passwords with MFA and modern passkeys, while also ensuring that users can only access the data relevant to their role within their specific tenant.

Quick Start

Guide me through designing a secure OAuth 2.1 authorization code flow with PKCE for a new web application.

Frequently Asked Questions about handle-authentication

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I implement an OAuth 2.1 authorization code flow with PKCE for a web application?

To implement an OAuth 2.1 authorization code flow with PKCE, you need to securely obtain tokens by redirecting users to an authorization server and exchanging the code with a verifier. This Skill guides designing this secure login flow end-to-end.

What is the best way to design fine-grained authorization using RBAC and ABAC?

Designing fine-grained authorization with RBAC and ABAC involves mapping user roles and attributes to specific access permissions. This Skill helps you structure these models and leverage the Cedar policy language for precise access control.

Can I use passkeys and WebAuthn for passwordless authentication in my SaaS app?

Yes, you can implement passkeys and WebAuthn for passwordless authentication to provide secure login without traditional passwords. This Skill covers integrating these modern auth standards alongside existing MFA flows.

How do I apply zero trust principles to API authentication and session management?

Applying zero trust principles to API authentication requires continuous trust assessment and strict session management rather than one-time perimeter verification. This Skill guides establishing continuous validation for securing your digital assets.

Does this approach support multi-tenant identity management patterns?

Yes, this approach supports multi-tenant identity management patterns, ensuring users only access data relevant to their role within their specific tenant. It guides structuring authorization policies for multi-tenant SaaS environments.