private async void AcquireTokenIWA_ClickAsync(object sender, RoutedEventArgs e) { AuthenticationResult result = null; try { result = await _pca.AcquireTokenByIntegratedWindowsAuthAsync(Scopes).ConfigureAwait(false); } catch (Exception ex) { await DisplayErrorAsync(ex).ConfigureAwait(false); return; } await DisplayResultAsync(result).ConfigureAwait(false); }
private async void AcquireTokenIWA_ClickAsync(object sender, RoutedEventArgs e) { AuthenticationResult result = null; try { result = await _pca.AcquireTokenByIntegratedWindowsAuthAsync(Scopes).ConfigureAwait(false); // result = await _pca.AcquireTokenByIntegratedWindowsAuthAsync(Scopes, "*****@*****.**"); // can also use this overload } catch (Exception ex) { await DisplayErrorAsync(ex).ConfigureAwait(false); return; } await DisplayResultAsync(result).ConfigureAwait(false); }