You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add getBearerToken callback for BYOK providers (Managed Identity) (#1748)
Lets BYOK provider configs supply a getBearerToken callback so the SDK
consumer resolves bearer tokens (e.g. Azure Managed Identity) on demand.
The callback never crosses the wire: the SDK strips it from the provider
config, sends a `hasBearerTokenProvider: true` flag, and answers the
runtime's session-scoped `providerToken.getToken` RPC by routing to the
matching per-provider callback. The returned token is applied as the
Authorization header for outbound model requests; the consumer owns
caching/refresh.
Implemented across all SDKs (Node, .NET, Go, Java, Python, Rust) with
e2e tests. The generated RPC files are intentionally left as the
committed CLI 1.0.65 codegen output (providerToken.getToken +
hasBearerTokenProvider) rather than hand-edited.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
0 commit comments