MsalServiceException.Claims 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
服务请求的其他声明。 如果此属性不为 null 或为空,则表示服务要求用户提供其他声明,例如执行双重身份验证。 有两种情况:
- 如果应用程序是一个 IPublicClientApplication,则只需调用 AcquireTokenInteractive(IEnumerable<String>) 并添加 WithClaims(String) 修饰符。
- 如果应用程序是
/>(因此执行 on-Behalf-Of 流),则应引发 HTTP 未经授权的异常,其中包含声明的消息
[System.Text.Json.Serialization.JsonInclude]
public string Claims { get; }
[<System.Text.Json.Serialization.JsonInclude>]
member this.Claims : string
Public ReadOnly Property Claims As String
属性值
- 属性