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.
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.