AcquireTokenForManagedIdentityParameterBuilder.WithClaimsFromClient Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Specifies client-originated claims to include in the token request. Unlike WithClaims(String) (for server-issued claims challenges), tokens acquired with client claims are cached and keyed on the claims value. Different claim values produce separate cache entries. Use stable, non-dynamic claim values to avoid cache fragmentation.
public Microsoft.Identity.Client.AcquireTokenForManagedIdentityParameterBuilder WithClaimsFromClient(string claimsJson);
member this.WithClaimsFromClient : string -> Microsoft.Identity.Client.AcquireTokenForManagedIdentityParameterBuilder
Public Function WithClaimsFromClient (claimsJson As String) As AcquireTokenForManagedIdentityParameterBuilder
Parameters
- claimsJson
- String
A JSON string containing the client claims. Must be valid JSON.
Returns
The builder to chain .With methods.