Freigeben über


AcquireTokenForClientParameterBuilder.WithAttributes(String) Method

Definition

Specifies an identity attribute to include in the token request. The attribute values will be returned as a claim in the token called "xms_attr" in the access token claims. This is typically used with FMI (Federated Managed Identity) scenarios. Example attribute json: "{"sg1":"0000-00000-0001","sg2":["0000-00000-0002","0000-00000-0003","0000-00000-0004"]}"

public Microsoft.Identity.Client.AcquireTokenForClientParameterBuilder WithAttributes(string attributeJson);
member this.WithAttributes : string -> Microsoft.Identity.Client.AcquireTokenForClientParameterBuilder
Public Function WithAttributes (attributeJson As String) As AcquireTokenForClientParameterBuilder

Parameters

attributeJson
String

The attribute value to include in the request

Returns

The builder to chain method calls

Remarks

The attribute value is included in the cache key, so different attribute values will result in different cache entries. This ensures that tokens with different attributes are not confused with each other.

Applies to