Skip to content

Commit

Permalink
Merge pull request #57 from ChrisNiebuhrMSFT/msal3x
Browse files Browse the repository at this point in the history
Standardize the way how the authentication token is acquired.
  • Loading branch information
jmprieur authored Aug 24, 2020
2 parents 5a4d8ba + 33cb63e commit d415bfb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion active-directory-wpf-msgraph-v2/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ private async void CallGraphButton_Click(object sender, RoutedEventArgs e)
try
{
authResult = await app.AcquireTokenInteractive(scopes)
.WithAccount(accounts.FirstOrDefault())
.WithAccount(firstAccount)
.WithParentActivityOrWindow(new WindowInteropHelper(this).Handle) // optional, used to center the browser on the window
.WithPrompt(Prompt.SelectAccount)
.ExecuteAsync();
Expand Down

0 comments on commit d415bfb

Please sign in to comment.