Overview
What this package owns in the runtime
Security builds on the core route pipeline. It registers strategies, authenticates requests through Passport-compatible flows, and injects auth state into route execution context for guards and controllers.
What it provides
- registerJwtStrategy() and registerJweStrategy() define authentication entry points.
- Authenticated, Auth, Roles, and AllowAnonymous decorate public or protected routes.
- SecurityAuthenticationService and SecurityAuthorizationService are injected through the container.
- Lifecycle integration is automatic when CreateApplication() sees the package.
How it fits
- Depends on @xtaskjs/core and @xtaskjs/common route metadata.
- Used in node-http and Express security samples, and in this admin session implementation.