AppSurface Search
API Reference

AspNetCore

Type

RazorWireAspNetCoreAuthResultProvider

Source

Adapts host-owned ASP.NET Core policy evaluation to RazorWire auth projection.

Remarks

The provider delegates to IAppSurfaceAspNetCorePolicyEvaluator. It does not register policies, choose schemes, call challenge or forbid handlers, redirect browsers, sign callers in or out, or mutate cookies.

Type

RazorWireAspNetCoreAuthServiceCollectionExtensions

Source

Registers RazorWire auth projection integration for ASP.NET Core hosts.

Method

AddRazorWireAspNetCoreAuth

IServiceCollection AddRazorWireAspNetCoreAuth(this IServiceCollection services) Source

Registers the RazorWire auth result provider backed by AppSurface ASP.NET Core policy evaluation.

Parameters

  • servicesService collection that receives the provider registration.

Returns

The same service collection for chaining.

Remarks

Call this after registering `ForgeTrust.AppSurface.Auth.AspNetCore` with AddAppSurfaceAspNetCoreAuth(...). This method does not call AddAuthentication, AddAuthorization, AddRazorWire, or any challenge/forbid APIs; those remain host-owned. The default provider is added with TryAddScoped, so an existing IRazorWireAuthResultProvider registration is preserved. Keep a custom provider when a host needs non-policy projection, custom tenant/resource resolution, or a test-specific auth result source instead of the ASP.NET Core policy adapter.