/// <summary>
/// .NET specific method for intergrated auth. To support Xamarin, we would need to move these to platform specific
/// libraries.
/// </summary>
/// <param name="scope"></param>
/// <param name="authority"></param>
/// <param name="policy"></param>
/// <param name="app"></param>
/// <returns></returns>
public static async Task <AuthenticationResult> AcquireTokenWithIntegratedAuthAsync(
this PublicClientApplication app, string[] scope, string authority, string policy)
{
return
(await
app.AcquireTokenWithIntegratedAuthInternalAsync(scope, authority, policy).ConfigureAwait(false));
}