I have configured a ADFS server which has relying party trust configured to office 365. I am able to authenticate users in the O365 using ADFS server. Is it possible to use SAML token issued by this ADFS server and fetch calendar or mail details using EWS exchange APIs?
In September 2021, we announced that effective October 1, 2022, we will begin disabling Basic authentication for Outlook, EWS, RPS, POP, IMAP, and EAS protocols in Exchange Online.
Exchange Web Services (EWS) is a cross-platform API that enables applications to access mailbox items such as email messages, meetings, and contacts from Exchange Online, Exchange Online as part of Office 365, or on-premises versions of Exchange starting with Exchange Server 2007.
Modern Auth (OAuth authentication) for EWS is only available in Exchange Online as part of Office 365. EWS applications using OAuth requires the "Full access to users' mailbox" permission to work. Full Mailbox Access is, therefore, the only permission type that can be granted for EWS Applications.
Have you DirSynced ADFS and O365 (which uses Azure Active Directory)?
If so, did you have a look at the Office 365 REST APIs?
Code samples
Just a thought!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With