Agent-Native Authentication

•
1
•

Implements and configures Better Auth, remote MCP OAuth, multi-tenant organizations, and role-based access control for agent-native applications.

A specialized authentication and authorization guide tailored for agent-native architectures powered by Better Auth. This skill provides proven patterns for session management, multiple auth modes (magic link, password fallback, social logins), remote MCP OAuth 2.0 resource protection with PKCE, framework-managed multi-tenant organizations, granular per-app access roles, cryptographic agent-to-agent (A2A) identity verification, and cross-app SSO via Dispatch identity hubs.

主な機能

01Better Auth integration with account-first design and strict no-sentinel safety guards
02Cross-app SSO federation and cryptographic agent-to-agent (A2A) token verification
03Framework-managed multi-tenant organizations with Google sign-in enforcement
041 GitHub stars
05Remote MCP OAuth 2.0 authorization code and PKCE token verification
06Declarative per-app access roles and action authorization guards

ユースケース

01Managing team organizations, member invitations, and granular app-level permissions
02Configuring login, signup, and session handling across dev and production environments
03Securing remote MCP endpoints and custom routes against unauthorized access