2.12.0
(feat): Add support for inferred authentication scheme. This allows the SDK to automatically
obtain authentication tokens from a specified token endpoint and cache them for subsequent
requests.
When an API uses inferred auth, the SDK will:
- Call the token endpoint to obtain authentication headers
- Cache the headers and refresh them when expired (with a 2-minute buffer)
- Automatically set the authenticated request headers on all API calls
2.11.3
(fix): Remove blocking .Result calls on async tasks in generated code. Header values now support
async resolution via Func<ValueTask<string>> and Func<Task<string>>, and the RawClient
uses async methods (CreateHttpRequestAsync, MergeHeadersAsync) to resolve headers without
blocking. This improves performance and prevents potential deadlocks in async contexts.