I have a problem auth with microsoft graph api. I never work with it. I try to write application responsible for downloading attachments from mails.
The program will be scheduled from platform so it cannot get admin consent (therefore authorize using Client Credentials). Every code example I found required an user interaction to sig in on microsoft to get a token.
I received from admin in my company below items: clientID, tenantID, app name, mailbox address and permission EWS.AccessAsUser.All (should I request about Mail.Read permission? mailbox can be easily migrate to 0365. If I well understand EWS is for exchange)
I'd like to connect to mailbox and download attachments. Is any way to receive authentication with clientID, tenantID ? any provider exist ? without user interaction to get a token?