Del via


AgentClaims.GetTokenScopes(ClaimsIdentity) Method

Definition

Retrieves the token scopes from the given claims identity.

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

Parameters

identity
ClaimsIdentity

The claims identity containing the token information.

Returns

A list of token scopes, or null if no scopes are found.

Applies to