Edit

Share via


MsalProvider.GetTokenWithScopesAsync(String[], Boolean) Method

Definition

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.

Applies to