IAadTokenProviderConfiguration interface
构造 AadTokenProvider 所需的字符串。
属性
| aad |
用于向 Azure Active Directory 进行身份验证的登录页。 禁止使用尾部斜杠。 |
| aad |
当前 Azure Active Directory 的会话 ID。 |
| aad |
Azure Active Directory 的租户 ID。 |
| aad |
用户的 Azure Active Directory ID。这将用于确保有效的缓存令牌适用于当前用户。 |
| enable |
是否启用支持声明质询的身份验证流。 |
| redirect |
用于从 Azure Active Directory 检索令牌的页面。 此 URL 必须在开发人员的应用程序重定向 URI 中列出。 |
| service |
开发人员的 Azure Active Directory 应用程序的客户端 ID。 |
| user |
用户的电子邮件地址。 这将用于确保当前用户的标识用于提取身份验证令牌。 |
| user |
用户主体名称。 这将用于确保当前用户的标识用于提取身份验证令牌。 此参数将避免“请求不明确:多个用户标识可用于当前请求”错误。 |
属性详细信息
aadInstanceUrl
用于向 Azure Active Directory 进行身份验证的登录页。 禁止使用尾部斜杠。
aadInstanceUrl: string;
属性值
string
aadSessionId
注意
此 API 以预览状态提供给开发者,可能根据我们收到的反馈更改。 请勿在生产环境中使用此 API。
当前 Azure Active Directory 的会话 ID。
aadSessionId: string;
属性值
string
aadTenantId
Azure Active Directory 的租户 ID。
aadTenantId: string;
属性值
string
aadUserId
用户的 Azure Active Directory ID。这将用于确保有效的缓存令牌适用于当前用户。
aadUserId?: string;
属性值
string
enableClaimChallenges
是否启用支持声明质询的身份验证流。
enableClaimChallenges?: boolean;
属性值
boolean
redirectUri
用于从 Azure Active Directory 检索令牌的页面。 此 URL 必须在开发人员的应用程序重定向 URI 中列出。
redirectUri: string;
属性值
string
servicePrincipalId
开发人员的 Azure Active Directory 应用程序的客户端 ID。
servicePrincipalId: string;
属性值
string
userEmail
警告
现已弃用此 API。
This parameter will be ignored. Use userPrincipalName instead
用户的电子邮件地址。 这将用于确保当前用户的标识用于提取身份验证令牌。
userEmail?: string;
属性值
string
userPrincipalName
用户主体名称。 这将用于确保当前用户的标识用于提取身份验证令牌。 此参数将避免“请求不明确:多个用户标识可用于当前请求”错误。
userPrincipalName?: string;
属性值
string