alcionai / corso

Free, Secure, and Open-Source Backup for Microsoft 365
https://corsobackup.io
Apache License 2.0
175 stars 27 forks source link

Find way to verify M365 credentials early and with low cost #2667

Open ashmrtn opened 1 year ago

ashmrtn commented 1 year ago

As we delay the point at which we fetch user information from M365 to later in the backup pipeline (see #2582) we lose the ability to check if M365 credentials are valid early on. While fetching all users in a tenant during the creation of GraphConnector is not the best way to check for valid credentials, it did work and gave an early signal

We should identify another way to verify credentials early and implement that. Checking if credentials are valid should hopefully be cheap to make in terms of Graph API calls

ashmrtn commented 1 year ago

similar to #2025