What problem does it solve?
This Skill provides a cohesive set of ASP.NET Core utilities to simplify JWT-based authentication and hosting multiple Single Page Applications (SPAs) within a single application, including domain-based routing and development-mode controller filtering.
Core Features & Use Cases
- JWT Authentication: Simplifies token creation and validation for ASP.NET Core apps using JwtBearer with a compact configuration workflow.
- Virtual SPA Hosting: Routes requests to different SPAs based on domain prefixes, path segments, or custom logic, enabling multi-SPA deployments in a single backend.
- Development-Mode Controllers: Exposes controllers only in development for testing while hiding them in production to improve security.
Quick Start
Install and configure the Astrolabe.Web.Common package in your ASP.NET Core project. Set up JwtBearer authentication using the provided helpers. Enable domain-based SPA routing with UseDomainSpa for each SPA (e.g., main, admin, dashboard) and annotate development-only controllers with [DevMode] as needed.