Milestone: Autumn'26 Codenamed: Rise of Ocelot Read the Docs: Ocelot 25.1 with PDF
Warning
Version 25.1 is in development! Full changelog: release/25.0...develop Read the latest 25.0 release notes here: v25.0
-
HTTP Handler: The "Pass-through Credentials" feature was added by @Sacrilege in pull request #1521.
This feature is the result of updates to three Ocelot features: Configuration, Authentication, and Authorization. Note that the HTTP Handler, a
SocketsHttpHandlerobject, is created byMessageInvokerPool.-
Configuration: The HTTP Handler options schema was extended for downstream credential handling.
The configuration model now exposes
UseCredentialsfor route-level HTTP handler setup, allowing Ocelot to initializeSocketsHttpHandler.Credentialswith the default network credentials used by the current execution context. This complements the Authentication and Authorization features by enabling Windows-authenticated downstream calls to be configured per route without changing the broader gateway behavior. -
Authentication: The "Pass Through Authentication" feature.
When HTTP Handler options
UseCredentialsis enabled for a route, Ocelot initializesSocketsHttpHandler.Credentialsto use default credentials for the outbound HTTP request. This is especially useful for Windows Integrated Authentication scenarios, including NTLM and Kerberos, where the downstream service or proxy expects the caller's identity to be propagated without explicitly setting credentials in code. The setting is scoped to the route, which keeps authentication behavior predictable and avoids forcing a global credential policy across every downstream service. For .NET developers, this is the same general pattern described by WebClient.UseDefaultCredentials, but applied at the Ocelot HTTP Handler level for downstream requests. -
Authorization: Route-level credential configuration was aligned with authorization scenarios through the "Pass Through Authorization" feature.
Authorization rules remain claim-based and route-scoped, while
UseCredentialscontrols how the downstream HTTP client authenticates to the target service. This allows Windows-authenticated routes to coexist with existing route policy checks and claim requirements without altering the authorization model itself.
-
-
Aggregation: The "Upstream HTTP Methods" feature was added by @crb02005 in pull request #1389.
Aggregate routes can now accept HTTP methods other than
GETand proxy/forward request bodies to downstream services. TheUpstreamHttpMethodoption is available per aggregate route and globally inGlobalConfiguration, and the two lists are merged. The default method, used as a fallback when JSON configuration is absent, can also be customized in C# by overriding theDefaultHttpMethodproperty ofAggregatesCreator.
-
Request Proxying: The
multipart/form-dataContent-Type header handling was improved by @rodri-oliveira-dev in pull request #2421.Ocelot now preserves multipart boundaries and file payloads when routing and multiplexing (aggregation) upload requests across downstream services, and the new documentation explains the supported scenarios and validation coverage for file uploads. This feature is especially useful for BFF scenarios where a single upstream request may need to be routed to multiple downstream services, each of which may require access to the same uploaded files or form data. Thorough testing was performed to ensure that Ocelot correctly handles multipart requests following RFC 7578 specification.
To be added...
-
Error Codes: Issue #1687 was patched by @rodri-oliveira-dev in pull request #2420.
Ocelot now returns
504 Gateway Timeoutwhen a downstream request times out, in accordance with RFC 9110. Client-request cancellation behavior and existing QoS/circuit-breaker behavior remain unchanged. Related timeout tests and documentation were updated accordingly. -
Authorization: Issue #679 was patched by @Ommmarr111 in pull request #2414.
RouteClaimsRequirementauthorization options now preserve URL-shaped claim type keys such ashttp://schemas.microsoft.com/ws/2008/06/identity/claims/rolewhen loaded from configuration. ASP.NET Core's binder previously split keys on:and silently discarded the requirement, causing standard .NET claim types to stop matching routes. The fix reconstructs the original keys after binding so authorization policies continue to work correctly.