Cax360.Platform.Core
1.0.0
dotnet add package Cax360.Platform.Core --version 1.0.0
NuGet\Install-Package Cax360.Platform.Core -Version 1.0.0
<PackageReference Include="Cax360.Platform.Core" Version="1.0.0" />
<PackageVersion Include="Cax360.Platform.Core" Version="1.0.0" />
<PackageReference Include="Cax360.Platform.Core" />
paket add Cax360.Platform.Core --version 1.0.0
#r "nuget: Cax360.Platform.Core, 1.0.0"
#:package Cax360.Platform.Core@1.0.0
#addin nuget:?package=Cax360.Platform.Core&version=1.0.0
#tool nuget:?package=Cax360.Platform.Core&version=1.0.0
Cax360.Platform.Core
Proprietary - Copyright 2026 Rectitude Consulting Services Pvt Ltd. All rights reserved.
Zero-config gRPC server builder for the CAX360 platform. A single AddCax360Platform() call wires the full interceptor chain in the required order:
OpenTelemetry -> AuthN (JWT) -> TenantResolver -> TenantMembershipGate (OpenFGA) -> StructuredLogging
Default endpoint policy is TenantScoped. Use explicit policies for anonymous or authenticated-global APIs.
Quick start
builder.Services.AddCax360Platform(configuration);
// OR with overrides
builder.Services.AddCax360PlatformGrpc(options =>
{
options.ServiceName = "my-service";
options.Env = "prod";
options.ServicePolicies["context.v1.ContextService"] = EndpointPolicy.AuthenticatedGlobal;
options.MethodPolicies["/grpc.health.v1.Health/Check"] = EndpointPolicy.Anonymous;
options.HttpPathPolicies["/v1/context/me"] = EndpointPolicy.AuthenticatedGlobal;
options.HttpPathPolicies["/v1/health"] = EndpointPolicy.Anonymous;
});
Legacy TenantOptionalMethods and TenantOptionalHttpPaths remain supported for backward compatibility, but new services should prefer ServicePolicies / MethodPolicies / HttpPathPolicies.
HTTP gateway
AddCax360PlatformHttpGateway() uses the same policy model as gRPC:
builder.Services.AddCax360PlatformHttpGateway(options =>
{
options.HttpPathPolicies["/v1/context/me"] = EndpointPolicy.AuthenticatedGlobal;
options.HttpPathPolicies["/v1/health"] = EndpointPolicy.Anonymous;
});
Use AuthenticatedGlobal only for endpoints that require auth but are not tenant-scoped, such as profile/bootstrap APIs.
Environment variables
| Variable | Default | Description |
|---|---|---|
CAX360_AUTH_JWKS_URL |
- | JWKS endpoint (Keycloak) |
CAX360_AUTH_ISSUER |
- | Expected JWT issuer |
CAX360_AUTH_AUDIENCE |
- | Expected JWT audience |
CAX360_FGA_API_GRPC |
- | OpenFGA gRPC host:port |
CAX360_FGA_STORE_ID |
- | OpenFGA store ID |
CAX360_FGA_MODEL_ID |
- | OpenFGA model ID |
CAX360_OTEL_EXPORTER_OTLP_ENDPOINT |
- | OTLP collector endpoint |
CAX360_SERVICE_NAME |
cax360-service |
Service name for telemetry |
CAX360_ENV |
dev |
Environment tag |
CAX360_STUB_MODE |
false |
Disable real auth (local dev only) |
Related packages
Cax360.Platform.Security- JWT validation + OpenFGA AuthZCax360.Platform.Observability- structured JSON loggingCax360.Platform.Messaging- NATS JetStream messagingCax360.Platform.TestKit- stubs for unit testing
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Cax360.Platform.Observability (>= 1.0.0)
- Cax360.Platform.Security (>= 1.0.0)
- Grpc.AspNetCore.Server (>= 2.66.0)
- Grpc.HealthCheck (>= 2.66.0)
- Grpc.Net.ClientFactory (>= 2.66.0)
- Microsoft.Extensions.Caching.StackExchangeRedis (>= 8.0.8)
- OpenTelemetry.Exporter.OpenTelemetryProtocol (>= 1.14.0)
- OpenTelemetry.Extensions.Hosting (>= 1.14.0)
- OpenTelemetry.Instrumentation.AspNetCore (>= 1.14.0)
- OpenTelemetry.Instrumentation.Runtime (>= 1.10.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|