I need to write a .NET Core console application which gets some emails from Office 365 account.
Is there any possibilities to get access to Office 365 API without any pop-ups and UI using email and password?
I tried a solution with registering an app in Azure Active Directory, but it isn't really suitable for my purposes, because a user, who logs in must be associated with a particular AAD account.
I found such question on Stuck Overflow, but all of them are related to old versions of API and old approaches.
I was looking for a solution for 4 days and read a plenty of documentation, but I'm still stuck.