Skip to content

Commit

Permalink
Update ExchangeOAuth2.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jstedfast authored Aug 8, 2023
1 parent 7462a16 commit a76adb1
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions ExchangeOAuth2.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ var authToken = await publicClientApplication.AcquireTokenInteractive (scopes).E
var oauth2 = new SaslMechanismOAuth2 (authToken.Account.Username, authToken.AccessToken);

using (var client = new ImapClient ()) {
await client.ConnectAsync ("outlook.office365.com", 993, SecureSocketOptions.SslOnConnect);
await client.AuthenticateAsync (oauth2);
await client.DisconnectAsync (true);
await client.ConnectAsync ("outlook.office365.com", 993, SecureSocketOptions.SslOnConnect);
await client.AuthenticateAsync (oauth2);
await client.DisconnectAsync (true);
}
```

Expand Down Expand Up @@ -143,9 +143,9 @@ var authToken = await confidentialClientApplication.AcquireTokenInteractive (sco
var oauth2 = new SaslMechanismOAuth2 (authToken.Account.Username, authToken.AccessToken);

using (var client = new ImapClient ()) {
await client.ConnectAsync ("outlook.office365.com", 993, SecureSocketOptions.SslOnConnect);
await client.AuthenticateAsync (oauth2);
await client.DisconnectAsync (true);
await client.ConnectAsync ("outlook.office365.com", 993, SecureSocketOptions.SslOnConnect);
await client.AuthenticateAsync (oauth2);
await client.DisconnectAsync (true);
}
```

Expand Down

0 comments on commit a76adb1

Please sign in to comment.