@rineex/auth-core
v1.1.10
Published
Authentication Core package for Rineex core modules
Downloads
1,293
Maintainers
Readme
@rineex/auth-core
Core authentication package for the Rineex framework. Built on @rineex/ddd
with a plugin model for auth methods.
What Is Implemented
| Area | Status |
| ---------------------------------------------- | --------------------------------------------------------- |
| Authentication attempt aggregate + events | Exported |
| Identity entity + value objects | Exported |
| Policy engine (AuthPolicyEngine) | Exported |
| AuthMethodPort + flow orchestration services | Port exported; services in-tree |
| OTP method adapter | @rineex/authentication-method-otp |
| Passwordless challenge domain | @rineex/authentication-method-passwordless (standalone) |
| MFA session domain + services | In-tree, not exported |
| OAuth authorization domain | In-tree, not exported |
| Session / token domains | In-tree, not exported |
Not implemented: SSO, social login, credential lifecycle, Flow DSL, trust levels.
Installation
pnpm add @rineex/auth-core @rineex/dddDocumentation
| Document | Description | | ----------------------------------------------------- | ------------------------------------------ | | Architecture.md | Domain model and layering (as implemented) | | Definition.md | Contracts, registries, ports | | RULES.md | Package topology and port map | | GAP_ANALYSIS.md | Remaining work | | ONBOARDING.md | Contributor guide | | Domain errors | Error classes and codes | | Value objects | VO reference | | FUTURE.md | Aspirational design (not implemented) |
Quick Example
import {
AuthenticationAttempt,
AuthAttemptId,
AuthMethodPort,
} from '@rineex/auth-core';
// Register an AuthMethodPort implementation (e.g. OtpAuthMethod) at composition root
// Wire AuthenticationAttemptRepositoryPort, IdentityRepository, DomainEventPublisherPortSee @rineex/authentication-method-otp for a complete method adapter.
Development
pnpm build
pnpm test
pnpm lint
pnpm check-typesLicense
Apache-2.0
