Skip to content

Commit

Permalink
Update ExchangeOAuth2.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jstedfast committed Aug 16, 2023
1 parent a76adb1 commit 6e02c00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ExchangeOAuth2.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ var scopes = new string[] {
// "https://outlook.office365.com/.default"
};

var authToken = await confidentialClientApplication.AcquireTokenInteractive (scopes).ExecuteAsync ();
var authToken = await confidentialClientApplication.AcquireClientToken (scopes).ExecuteAsync ();

var oauth2 = new SaslMechanismOAuth2 (authToken.Account.Username, authToken.AccessToken);

Expand Down

0 comments on commit 6e02c00

Please sign in to comment.