PtcRunner.Kernel.MCPOAuth.CredentialResolver (PtcRunner v0.14.0)

Copy Markdown View Source

Just-in-time confidential-client secret resolution.

Resolver callbacks receive only a prevalidated binding identifier and the caller's absolute local deadline. They may return a bounded binary directly or %{value: binary, release: zero_arity_function}. The latter release callback always runs after the immediate OAuth request.

Summary

Functions

with_secret(resolver, binding, deadline_ms, callback)

@spec with_secret(function(), binary(), integer(), (binary() -> term())) ::
  term() | {:error, atom()}