你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

ManagedIdentityTokenSource 类

定义

Azure 托管标识的令牌源实现。

public class ManagedIdentityTokenSource : Microsoft.Azure.WebJobs.Extensions.DurableTask.ITokenSource
type ManagedIdentityTokenSource = class
    interface ITokenSource
Public Class ManagedIdentityTokenSource
Implements ITokenSource
继承
ManagedIdentityTokenSource
实现

构造函数

ManagedIdentityTokenSource(String, ManagedIdentityOptions)

初始化 ManagedIdentityTokenSource 类的新实例。

属性

Options

用户可在进行身份验证时配置的 Azure 凭据选项。

Resource

获取正在调用的 Web API 的 Azure Active Directory 资源标识符。 例如 https://management.core.windows.net/.defaulthttps://graph.microsoft.com/.default

方法

GetTokenAsync()

获取资源的令牌。

适用于