@stackwright-pro/auth 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +33 -0
- package/dist/index.d.mts +1009 -0
- package/dist/index.d.ts +1009 -0
- package/dist/index.js +1182 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +1124 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +46 -0
package/README.md
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# @stackwright-pro/auth
|
|
2
|
+
|
|
3
|
+
> **Lightweight, auditable authentication for Stackwright**
|
|
4
|
+
|
|
5
|
+
A minimal, framework-agnostic authentication library built for government and enterprise environments where security, auditability, and simplicity matter.
|
|
6
|
+
|
|
7
|
+
## ✨ Features
|
|
8
|
+
|
|
9
|
+
- **PKI/CAC Authentication** – Full X.509 client certificate support with DN parsing and CRL validation
|
|
10
|
+
- **OIDC Integration** – Standards-compliant OpenID Connect flows (Authorization Code, Implicit, Hybrid)
|
|
11
|
+
- **Component-Level RBAC** – Fine-grained authorization decorators and hooks for React components
|
|
12
|
+
- **Framework Agnostic** – Works with any modern web framework (React, Next.js, Express, Fastify, etc.)
|
|
13
|
+
- **Minimal Footprint** – ~500 lines of core logic, zero unnecessary abstractions
|
|
14
|
+
- **Type-Safe** – Full TypeScript support with Zod schema validation
|
|
15
|
+
- **Audit-Ready** – Structured logging and compliance-friendly session management
|
|
16
|
+
|
|
17
|
+
## 📦 Installation
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
pnpm add @stackwright-pro/auth
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## 📖 Documentation
|
|
24
|
+
|
|
25
|
+
See [AUTH-IMPLEMENTATION-PLAN.md](../../AUTH-IMPLEMENTATION-PLAN.md) for the complete roadmap and implementation details.
|
|
26
|
+
|
|
27
|
+
## 🚀 Quick Start
|
|
28
|
+
|
|
29
|
+
Coming soon! This package is currently under active development.
|
|
30
|
+
|
|
31
|
+
## 📄 License
|
|
32
|
+
|
|
33
|
+
PROPRIETARY - For authorized use only within Stackwright Pro projects.
|