AgentClaims.GetOutgoingTokenScopes(ClaimsIdentity, Boolean) 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 incoming identity.
public static System.Collections.Generic.IList<string> GetOutgoingTokenScopes(this System.Security.Claims.ClaimsIdentity identity, bool defaultABSScopes = false);
static member GetOutgoingTokenScopes : System.Security.Claims.ClaimsIdentity * bool -> System.Collections.Generic.IList<string>
<Extension()>
Public Function GetOutgoingTokenScopes (identity As ClaimsIdentity, Optional defaultABSScopes As Boolean = false) As IList(Of String)
Parameters
- identity
- ClaimsIdentity
The incoming identity containing the token information.
- defaultABSScopes
- Boolean
Normally the IAccessTokenProvider will use what's in settings. This is what we want for Azure Bot Service since that can change for Public vs Gov, etc... For agent scenarios though, it's always defaulted to "{{appid}}/.default".
Returns
A list of token scopes.