Conversation.ClaimsFromIdentity(ClaimsIdentity) Method

Definition

Extracts a dictionary of selected claim types and their values from the specified identity.

public static System.Collections.Generic.IDictionary<string,string> ClaimsFromIdentity(System.Security.Claims.ClaimsIdentity identity);
static member ClaimsFromIdentity : System.Security.Claims.ClaimsIdentity -> System.Collections.Generic.IDictionary<string, string>
Public Shared Function ClaimsFromIdentity (identity As ClaimsIdentity) As IDictionary(Of String, String)

Parameters

identity
ClaimsIdentity

The identity from which to extract claims. Cannot be null.

Returns

A dictionary containing applicable claims from the ClaimsIdentity.

Remarks

Only claims with the types 'aud', 'azp', 'appid', 'idtyp', 'ver', 'iss', and 'tid' are included in the returned dictionary.

Applies to