OfficeDev / Office-Add-in-samples

Code samples for Office Add-in development on the Microsoft 365 platform.
MIT License
671 stars 756 forks source link

How to debug against outlook online account with MFA? #763

Closed asifsid closed 2 months ago

asifsid commented 2 months ago

Note: This repo is only for questions related to its samples. If you have questions about how to use office.js or the Office developer platform, please post your question on https://stackoverflow.com. Tag your question with office-js or outlook-web-addins

Question

The instruction describes adding the outlook email address. But for outlook online setup where MFA is enabled, it doesn't seem like it works with that setup. How is the auth flow set up for such case?

davidchesnut commented 2 months ago

Hi @asifsid, which sample are you looking at? Thanks!

asifsid commented 2 months ago

I was looking at both

Samples\blazor-add-in\outlook-blazor-add-in

-and-

Samples\auth\Outlook-Add-in-Microsoft-Graph-ASPNET

I am getting this when I am trying to debug:

Thanks,

~Asif


From: David Chesnut @.> Sent: Wednesday, April 24, 2024 10:48 AM To: OfficeDev/Office-Add-in-samples @.> Cc: Mention @.>; Author @.> Subject: Re: [OfficeDev/Office-Add-in-samples] How to debug against outlook online account with MFA? (Issue #763)

Hi @asifsidhttps://github.com/asifsid, which sample are you looking at? Thanks!

— Reply to this email directly, view it on GitHubhttps://github.com/OfficeDev/Office-Add-in-samples/issues/763#issuecomment-2075508929 or unsubscribehttps://github.com/notifications/unsubscribe-auth/ADI6UKQ7JUYTRGF4LHZ5HBTY67WARBFKMF2HI4TJMJ2XIZLTS2BKK5TBNR2WLJDUOJ2WLJDOMFWWLO3UNBZGKYLEL5YGC4TUNFRWS4DBNZ2F6YLDORUXM2LUPGBKK5TBNR2WLJDUOJ2WLJDOMFWWLLTXMF2GG2C7MFRXI2LWNF2HTAVFOZQWY5LFUVUXG43VMWSG4YLNMWVXI2DSMVQWIX3UPFYGLAVFOZQWY5LFVE3TINRZGI4TKMZVURXGC3LFVFUGC427NRQWEZLMQKSXMYLMOVS2SNZUGY4TEOJVGUY2I3TBNVS2S2DBONPWYYLCMVWIFJLWMFWHKZNKGQZDEMBVGQ4TANJWURXGC3LFVFUGC427NRQWEZLMVRZXKYTKMVRXIX3UPFYGLLCJONZXKZKDN5WW2ZLOOSTHI33QNFRXHFMCUR2HS4DFVJZGK4DPONUXI33SPGSXMYLMOVS2QMZZGU3TQOBTGKBKI5DZOBS2K2LTON2WLJLWMFWHKZNKGIZDKOJWGE4DGOBVQKSHI6LQMWSWYYLCMVWKK5TBNR2WLKJXGQ3DSMRZGUZTLAVEOR4XAZNFNRQWEZLMUV3GC3DVMWUTONBWHEZDSNJVGGBKI5DZOBS2K3DBMJSWZJLWMFWHKZNKGQZDEMBVGQ4TANJWU52HE2LHM5SXFJTDOJSWC5DF. You are receiving this email because you were mentioned.

Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

asifsid commented 2 months ago

Sent too soon.


From: Asif Siddiqi @.> Sent: Wednesday, April 24, 2024 11:22 AM To: OfficeDev/Office-Add-in-samples @.>; @. @.> Cc: Mention @.>; Author @.> Subject: Re: [OfficeDev/Office-Add-in-samples] How to debug against outlook online account with MFA? (Issue #763)

I was looking at both

Samples\blazor-add-in\outlook-blazor-add-in

-and-

Samples\auth\Outlook-Add-in-Microsoft-Graph-ASPNET

I am getting this when I am trying to debug:

[cid:3840ac77-49f3-4e91-a12b-0e7a6358a105]

And I did try to use my password for my corp account. But there is no MFA challenge option - so as expected I am seeing a 401 response.

Question is how do I debug the sample for my account. If I use the yo generator, it seems to be able to register and debug (for the simplest scenario) - but not sure how the samples are configured differently.

Thanks,

~Asif


From: David Chesnut @.> Sent: Wednesday, April 24, 2024 10:48 AM To: OfficeDev/Office-Add-in-samples @.> Cc: Mention @.>; Author @.> Subject: Re: [OfficeDev/Office-Add-in-samples] How to debug against outlook online account with MFA? (Issue #763)

Hi @asifsidhttps://github.com/asifsid, which sample are you looking at? Thanks!

— Reply to this email directly, view it on GitHubhttps://github.com/OfficeDev/Office-Add-in-samples/issues/763#issuecomment-2075508929 or unsubscribehttps://github.com/notifications/unsubscribe-auth/ADI6UKQ7JUYTRGF4LHZ5HBTY67WARBFKMF2HI4TJMJ2XIZLTS2BKK5TBNR2WLJDUOJ2WLJDOMFWWLO3UNBZGKYLEL5YGC4TUNFRWS4DBNZ2F6YLDORUXM2LUPGBKK5TBNR2WLJDUOJ2WLJDOMFWWLLTXMF2GG2C7MFRXI2LWNF2HTAVFOZQWY5LFUVUXG43VMWSG4YLNMWVXI2DSMVQWIX3UPFYGLAVFOZQWY5LFVE3TINRZGI4TKMZVURXGC3LFVFUGC427NRQWEZLMQKSXMYLMOVS2SNZUGY4TEOJVGUY2I3TBNVS2S2DBONPWYYLCMVWIFJLWMFWHKZNKGQZDEMBVGQ4TANJWURXGC3LFVFUGC427NRQWEZLMVRZXKYTKMVRXIX3UPFYGLLCJONZXKZKDN5WW2ZLOOSTHI33QNFRXHFMCUR2HS4DFVJZGK4DPONUXI33SPGSXMYLMOVS2QMZZGU3TQOBTGKBKI5DZOBS2K2LTON2WLJLWMFWHKZNKGIZDKOJWGE4DGOBVQKSHI6LQMWSWYYLCMVWKK5TBNR2WLKJXGQ3DSMRZGUZTLAVEOR4XAZNFNRQWEZLMUV3GC3DVMWUTONBWHEZDSNJVGGBKI5DZOBS2K3DBMJSWZJLWMFWHKZNKGQZDEMBVGQ4TANJWU52HE2LHM5SXFJTDOJSWC5DF. You are receiving this email because you were mentioned.

Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

asifsid commented 2 months ago

I have figured out the answer.

Need to set the "Use multi-factor Auth" setting to true in the same project.