QVeris
运行任务
文档目录

AgentDelegationCredentialProvider

Exchanges a user OAuth access token for a short-lived, non-refreshable Agent token.

Tokens are cached only in memory, never written to disk, and exchanged again only after the cached token reaches its refresh boundary. The provider requires the client request context to match its configured resource and scope ceiling.

实现

构造函数

构造函数

new AgentDelegationCredentialProvider(options): AgentDelegationCredentialProvider

参数

options

AgentDelegationCredentialProviderOptions

返回

AgentDelegationCredentialProvider

方法

clear()

clear(): void

Drop the in-memory token without revoking or persisting it.

返回

void

getCredential()

getCredential(context): Promise<string>

参数

context

CredentialContext

返回

Promise<string>

实现了

CredentialProvider.getCredential


这个页面对你有帮助吗?