rbac-pin-security

Community

Enforce RBAC and PIN for critical ops

Authorfilimorniga-ux
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Previene accesos y ejecuciones no autorizadas en operaciones sensibles al imponer control de roles y la solicitud de PIN jerárquico, y evita el uso de autenticación por email/contraseña en flujos críticos.

Core Features & Use Cases

  • Cero Email/Password: Obliga al flujo de autenticación por selector de sucursal, selección de usuario y teclado numérico (PIN 4 dígitos).
  • Umbrales de PIN: Solicita PIN de niveles superiores para acciones que superen umbrales (p. ej. ajustes de stock >100, descuentos >10%, eliminación de lotes).
  • Protección de Rutas y Middleware: Verifica jerarquía de roles contra la definición en src/domain/auth.ts y bloquea acceso si el rol es inferior.
  • Implementación Requerida: Integrar modales de PIN, HOCs o middleware de roles y evitar cualquier formulario de login con email/password.

Quick Start

Protect the inventory adjustment action by wrapping the handler with a ManagerPinModal that verifies the user's role and requests supervisor PIN for adjustments over 100 units.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: rbac-pin-security
Download link: https://github.com/filimorniga-ux/farmacias-vallenar-suit/archive/main.zip#rbac-pin-security

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.