AgentClaims.GetTokenScopes(ClaimsIdentity) Method

Definition

Caution

GetTokenScopes is deprecated, please use GetOutgoingTokenScopes instead.

Retrieves the token scopes from the given claims identity.

[System.Obsolete("GetTokenScopes is deprecated, please use GetOutgoingTokenScopes instead.")]
public static System.Collections.Generic.IList<string> GetTokenScopes(System.Security.Claims.ClaimsIdentity identity);
[<System.Obsolete("GetTokenScopes is deprecated, please use GetOutgoingTokenScopes instead.")>]
static member GetTokenScopes : System.Security.Claims.ClaimsIdentity -> System.Collections.Generic.IList<string>
Public 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.

Attributes

Applies to