AgentClaims.GetTokenScopes(ClaimsIdentity) 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.
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