diff --git a/src/ConsoleAppTest/Program.cs b/src/ConsoleAppTest/Program.cs index 8a06670..71a6382 100644 --- a/src/ConsoleAppTest/Program.cs +++ b/src/ConsoleAppTest/Program.cs @@ -38,16 +38,7 @@ // await client.DisconnectAsync(true); //} -var scopes = new string[] { - //"email", - //"offline_access", - "https://outlook.office365.com/.default", - //"https://outlook.office.com/IMAP.AccessAsUser.All", // Only needed for IMAP - //"https://outlook.office.com/POP.AccessAsUser.All", // Only needed for POP - //"https://outlook.office.com/SMTP.Send", // Only needed for SMTP - //"https://graph.microsoft.com/.default", - }; - +var scopes = new string[] { "https://outlook.office365.com/.default" }; var confidentialClientApplication = ConfidentialClientApplicationBuilder .Create(clientId) .WithClientSecret("")