MsalProvider.GetTokenWithScopesAsync(String[], 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.
Retrieve an authorization token using the provided scopes.
protected System.Threading.Tasks.Task<string> GetTokenWithScopesAsync(string[] scopes, bool silentOnly = false);
member this.GetTokenWithScopesAsync : string[] * bool -> System.Threading.Tasks.Task<string>
Protected Function GetTokenWithScopesAsync (scopes As String(), Optional silentOnly As Boolean = false) As Task(Of String)
Parameters
- scopes
- String[]
An array of scopes to pass along with the Graph request.
- silentOnly
- Boolean
A value to determine whether account broker UI should be shown, if required by MSAL.
Returns
A Task representing the result of the asynchronous operation.