search and ai stabilization work, localization stablized.

This commit is contained in:
master
2026-02-24 23:29:36 +02:00
parent 4f947a8b61
commit b07d27772e
766 changed files with 55299 additions and 3221 deletions

View File

@@ -16,6 +16,7 @@ using StellaOps.VexLens.Verification;
using StellaOps.VexLens.WebService.Extensions;
using System.Threading.RateLimiting;
using StellaOps.Localization;
using StellaOps.Router.AspNet;
var builder = WebApplication.CreateBuilder(args);
@@ -74,9 +75,13 @@ builder.Services.AddRateLimiter(options =>
builder.Services.AddStellaOpsTenantServices();
builder.Services.AddStellaOpsCors(builder.Environment, builder.Configuration);
builder.Services.AddStellaOpsLocalization(builder.Configuration);
builder.Services.AddTranslationBundle(System.Reflection.Assembly.GetExecutingAssembly());
// Register authentication services so app.UseAuthentication() can resolve IAuthenticationSchemeProvider.
builder.Services.AddStellaOpsResourceServerAuthentication(builder.Configuration);
// RASD-03: Register scope-based authorization policies for VexLens endpoints.
builder.Services.AddStellaOpsScopeHandler();
builder.Services.AddAuthorization(auth =>
{
auth.AddStellaOpsScopePolicy("vexlens.read", "vexlens.read");
@@ -100,6 +105,7 @@ if (app.Environment.IsDevelopment())
}
app.UseStellaOpsCors();
app.UseStellaOpsLocalization();
app.UseAuthentication();
app.UseAuthorization();
app.UseStellaOpsTenantMiddleware();
@@ -136,6 +142,7 @@ Log.Information("VexLens WebService starting on {Urls}", string.Join(", ", app.U
try
{
app.TryRefreshStellaRouterEndpoints(routerEnabled);
await app.LoadTranslationsAsync();
app.Run();
}
catch (Exception ex)

View File

@@ -30,6 +30,10 @@
<ProjectReference Include="../../Authority/StellaOps.Authority/StellaOps.Auth.Abstractions/StellaOps.Auth.Abstractions.csproj" />
<ProjectReference Include="../../Authority/StellaOps.Authority/StellaOps.Auth.Client/StellaOps.Auth.Client.csproj" />
<ProjectReference Include="../../Authority/StellaOps.Authority/StellaOps.Auth.ServerIntegration/StellaOps.Auth.ServerIntegration.csproj" />
<ProjectReference Include="../../__Libraries/StellaOps.Localization/StellaOps.Localization.csproj" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Translations\*.json" />
</ItemGroup>
<PropertyGroup Label="StellaOpsReleaseVersion">
<Version>1.0.0-alpha1</Version>

View File

@@ -0,0 +1,3 @@
{
"_meta": { "locale": "en-US", "namespace": "vexlens", "version": "1.0" }
}