Feb 11 2022
09:16 AM
- last edited on
Feb 07 2023
07:23 PM
by
TechCommunityAP
Feb 11 2022
09:16 AM
- last edited on
Feb 07 2023
07:23 PM
by
TechCommunityAP
Hi:
How can we connect to a mailbox programmatically via EWS when MFA is Enforced? We've tried creating an App Password but still get 401 Unauthorized when trying to connect.
How does Microsoft provide for this case, i.e. when MFA is required to be Enforced and at the same time we must connect to a mailbox programmatically? I guess I'm missing something in the Tenant configuration.
Thank you!
Bob H.
Feb 11 2022 10:06 AM - edited Feb 11 2022 10:07 AM
SolutionObtain a token in app context and impersonate the user. There's detailed guidance here: https://docs.microsoft.com/en-us/exchange/client-developer/exchange-web-services/how-to-authenticate...
Feb 11 2022 10:06 AM - edited Feb 11 2022 10:07 AM
SolutionObtain a token in app context and impersonate the user. There's detailed guidance here: https://docs.microsoft.com/en-us/exchange/client-developer/exchange-web-services/how-to-authenticate...