Office 365 OAuth2 working correctly for IMAP, not working for POP3

%3CLINGO-SUB%20id%3D%22lingo-sub-2427135%22%20slang%3D%22en-US%22%3EOffice%20365%20OAuth2%20working%20correctly%20for%20IMAP%2C%20not%20working%20for%20POP3%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2427135%22%20slang%3D%22en-US%22%3E%3CDIV%3E%3CDIV%3E%3CSPAN%3EHello%2C%26nbsp%3BI%26nbsp%3Bimplemented%26nbsp%3BOAuth2%26nbsp%3Bfor%26nbsp%3Bauthenticating%26nbsp%3Ban%26nbsp%3BIMAP%2C%26nbsp%3BPOP%26nbsp%3Bor%26nbsp%3BSMTP%26nbsp%3Bconnection%26nbsp%3Bfor%26nbsp%3Boutlook.com%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3Eaccounts%26nbsp%3Bin%26nbsp%3Bmy%26nbsp%3Bapp%2C%20using%20the%20authorization%20code%20flow%2C%20following%26nbsp%3Bthe%26nbsp%3Bsteps%26nbsp%3Bdefined%26nbsp%3Bin%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fexchange%2Fclient-developer%2Flegacy-protocols%2Fhow-to-authenticate-an-imap-pop-smtp-application-by-using-oauth%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fexchange%2Fclient-developer%2Flegacy-protocols%2Fhow-to-authenticate-an-imap-pop-smtp-application-by-using-oauth%3C%2FA%3E%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3EI%26nbsp%3Bimplemented%26nbsp%3Bthis%26nbsp%3Bin%26nbsp%3BNode.js%26nbsp%3Busing%26nbsp%3Bthe%26nbsp%3Blibrary%26nbsp%3Bnode-openid-client%26nbsp%3Bfor%26nbsp%3Bauthentication%2C%26nbsp%3Band%26nbsp%3Bemailjs-imap-client%26nbsp%3Band%26nbsp%3Bnode-pop3%26nbsp%3Bfor%26nbsp%3Bconnection%26nbsp%3Ba%26nbsp%3Bfew%26nbsp%3Bmonths%26nbsp%3Bago%26nbsp%3Band%26nbsp%3Bit%26nbsp%3Bwas%26nbsp%3Bworking%26nbsp%3Bcorrectly.%26nbsp%3BRecently%2C%26nbsp%3BPOP3%26nbsp%3Bstopped%26nbsp%3Bworking%2C%26nbsp%3Bwhilst%26nbsp%3BIMAP%26nbsp%3Bstill%26nbsp%3Bworks%26nbsp%3Bfine.%26nbsp%3BPOP3%26nbsp%3Busing%26nbsp%3BBasic%26nbsp%3Bauthentication%26nbsp%3B(user%26nbsp%3B%2B%26nbsp%3Bpassword)%26nbsp%3Balso%26nbsp%3Bworks%26nbsp%3Bfine.%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3EThese%26nbsp%3Bare%26nbsp%3Bthe%26nbsp%3Bsteps%26nbsp%3BI%26nbsp%3Bfollow%26nbsp%3B(outside%26nbsp%3Bof%26nbsp%3Bmy%26nbsp%3Bapp)%26nbsp%3Bto%26nbsp%3Bsee%26nbsp%3Bif%26nbsp%3Bthe%26nbsp%3Bprocess%26nbsp%3Bworks%26nbsp%3Bcorrectly.%26nbsp%3BPlease%26nbsp%3Bcorrect%26nbsp%3Bme%26nbsp%3Bif%26nbsp%3Banything%26nbsp%3Bis%26nbsp%3Bwrong%3A%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FDIV%3E%3CBR%20%2F%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B-%26nbsp%3BCreate%26nbsp%3Ban%26nbsp%3Bapp%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B-%26nbsp%3BGo%26nbsp%3Bto%26nbsp%3Bportal.azure.com%2F%23home%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B-%26nbsp%3BManage%26nbsp%3BAzure%26nbsp%3BActive%26nbsp%3BDirectory%26nbsp%3B%2F%26nbsp%3BView%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B-%26nbsp%3BApp%26nbsp%3BRegistrations%26nbsp%3B%2F%26nbsp%3BNew%26nbsp%3BRegistration%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B-%26nbsp%3BSet%26nbsp%3Bthe%26nbsp%3BName%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B-%26nbsp%3BSet%26nbsp%3Bthe%26nbsp%3Bsupported%26nbsp%3Baccount%26nbsp%3Btypes%26nbsp%3Bto%26nbsp%3B%22Accounts%26nbsp%3Bin%26nbsp%3Bany%26nbsp%3Borganizational%26nbsp%3Bdirectory%26nbsp%3B(Any%26nbsp%3BAzure%26nbsp%3BAD%26nbsp%3Bdirectory%26nbsp%3B-%26nbsp%3BMultitenant)%26nbsp%3Band%26nbsp%3Bpersonal%26nbsp%3BMicrosoft%26nbsp%3Baccounts%26nbsp%3B(e.g.%26nbsp%3BSkype%2C%26nbsp%3BXbox)%22%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B-%26nbsp%3BSet%26nbsp%3Bthe%26nbsp%3BRedirect%26nbsp%3BURI%26nbsp%3Bto%26nbsp%3Bhttps%3A%2F%2F(my_app)%2Fcallback%2F%3C%2FSPAN%3E%3C%2FDIV%3E%3CBR%20%2F%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B-%26nbsp%3BCreate%26nbsp%3Ba%26nbsp%3Bsecret%3A%26nbsp%3BGo%26nbsp%3Bto%26nbsp%3Bcertificates%26nbsp%3Band%26nbsp%3Bsecrets%26nbsp%3B%2F%26nbsp%3BNew%26nbsp%3BClient%26nbsp%3BSecret%26nbsp%3B(Set%26nbsp%3Bthe%26nbsp%3Bname%26nbsp%3Band%26nbsp%3BExpiry%26nbsp%3Btime%26nbsp%3Bto%26nbsp%3B24%26nbsp%3Bmonths).%26nbsp%3BAnd%26nbsp%3BI%26nbsp%3Bsave%26nbsp%3Bthe%26nbsp%3Bsecret%26nbsp%3Bvalue%3C%2FSPAN%3E%3C%2FDIV%3E%3CBR%20%2F%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B-%26nbsp%3BGet%26nbsp%3Bthe%26nbsp%3Bapp%26nbsp%3Bid%26nbsp%3Bin%26nbsp%3BOverview%26nbsp%3B%2F%26nbsp%3BApplication%26nbsp%3B(client)%26nbsp%3BID%26nbsp%3Bwhich%26nbsp%3BI%26nbsp%3Bwill%26nbsp%3Buse%26nbsp%3Blater%26nbsp%3Balong%26nbsp%3Bwith%26nbsp%3Bthe%26nbsp%3Bsecret%3C%2FSPAN%3E%3C%2FDIV%3E%3CBR%20%2F%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B-%26nbsp%3BSet%26nbsp%3Bup%26nbsp%3Bpermissions%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B-%26nbsp%3BAPI%26nbsp%3Bpermissions%26nbsp%3B%2F%26nbsp%3BAdd%26nbsp%3Ba%26nbsp%3Bpermission%26nbsp%3B%2F%26nbsp%3BMicrosoft%26nbsp%3BGraph%26nbsp%3B%2F%26nbsp%3BDelegated%26nbsp%3Bpermissions%26nbsp%3B%2F%26nbsp%3BAnd%26nbsp%3Bthen%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3Eadd%26nbsp%3Bopenid%2C%26nbsp%3Boffline_access%2C%26nbsp%3BPOP.AccessAsUser.All%2C%26nbsp%3Band%26nbsp%3BIMAP.AccessAsUser.All.%26nbsp%3BAnd%26nbsp%3Bremove%26nbsp%3Bthe%26nbsp%3BUser.Read%26nbsp%3Bpermission%26nbsp%3Bthat%26nbsp%3Bis%26nbsp%3Bset%26nbsp%3Bby%26nbsp%3Bdefault%3C%2FSPAN%3E%3C%2FDIV%3E%3CBR%20%2F%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B-%26nbsp%3BCreate%26nbsp%3Ban%26nbsp%3Baccount%26nbsp%3Bthat%26nbsp%3BI%26nbsp%3Bwill%26nbsp%3Bconnect%26nbsp%3Bto%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B-%26nbsp%3BGo%26nbsp%3Bto%26nbsp%3Boutlook.live.com%2Fowa%26nbsp%3B%2F%26nbsp%3BSign%26nbsp%3BIn%26nbsp%3B%2F%26nbsp%3BCreate%26nbsp%3Bnew%26nbsp%3Baccount%26nbsp%3B%2F%26nbsp%3BSet%26nbsp%3Bthe%26nbsp%3B%20email%20address%2C%26nbsp%3Buser%2C%26nbsp%3Bpassword...%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B-%26nbsp%3BThen%26nbsp%3Bgo%26nbsp%3Bto%26nbsp%3Bsettings%26nbsp%3B%2F%26nbsp%3BPOP%26nbsp%3Band%26nbsp%3BIMAP%26nbsp%3B%2F%26nbsp%3BSet%26nbsp%3B%22Let%26nbsp%3Bdevices%26nbsp%3Band%26nbsp%3Bapps%26nbsp%3Buse%26nbsp%3BPOP%22%26nbsp%3Bto%26nbsp%3BYes%2C%26nbsp%3Band%26nbsp%3Bselect%26nbsp%3B%22Let%26nbsp%3Bapps%26nbsp%3Band%26nbsp%3Bdevices%26nbsp%3Bdelete%26nbsp%3Bmessages%26nbsp%3Bfrom%26nbsp%3BOutlook%22%3C%2FSPAN%3E%3C%2FDIV%3E%3CBR%20%2F%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B-%26nbsp%3BRequest%26nbsp%3Baccess%26nbsp%3Bto%26nbsp%3Bemails%26nbsp%3Bvia%26nbsp%3BIMAP%26nbsp%3Busing%26nbsp%3BPostman%26nbsp%3B(it%26nbsp%3Bworks)%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B-%26nbsp%3BCreate%26nbsp%3Bthe%26nbsp%3Bfollowing%26nbsp%3Burl%26nbsp%3Bwhich%26nbsp%3BI%26nbsp%3Bpaste%26nbsp%3Bin%26nbsp%3Ba%26nbsp%3Bbrowser%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B-%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Flogin.microsoftonline.com%2Fcommon%2Foauth2%2Fv2.0%2Fauthorize%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ehttps%3A%2F%2Flogin.microsoftonline.com%2Fcommon%2Foauth2%2Fv2.0%2Fauthorize%3C%2FA%3E%3F%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3Bclient_id%3D(my_client_id)%26amp%3B%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3Bresponse_type%3Dcode%26amp%3B%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3Bredirect_uri%3D(my_redirect_uri)%26amp%3B%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3Bresponse_mode%3Dquery%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26amp%3Bscope%3D%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3Bopenid%2520%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3Bemail%2520%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3Boffline_access%2520%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3Bhttps%253A%252F%252Foutlook.office.com%252FIMAP.AccessAsUser.All%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26amp%3B%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3Bstate%3D12345%3C%2FSPAN%3E%3C%2FDIV%3E%3CBR%20%2F%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B-%26nbsp%3BThis%26nbsp%3Bwill%26nbsp%3Bshow%26nbsp%3Ba%26nbsp%3Bpopup%26nbsp%3Bthat%26nbsp%3Bsays%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B(app_name)%26nbsp%3Bneeds%26nbsp%3Byour%26nbsp%3Bpermission%26nbsp%3Bto%3A%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3BSign%26nbsp%3Byou%26nbsp%3Bin%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B(app_name)%26nbsp%3Bwill%26nbsp%3Bbe%26nbsp%3Bable%26nbsp%3Bto%26nbsp%3Bsign%26nbsp%3Byou%26nbsp%3Bin%26nbsp%3Band%26nbsp%3Bassign%26nbsp%3Ba%26nbsp%3Bunique%26nbsp%3Band%26nbsp%3Banonymous%26nbsp%3BID%26nbsp%3Bto%26nbsp%3Byour%26nbsp%3Baccount.%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3BView%26nbsp%3Byour%26nbsp%3Bemail%26nbsp%3Baddress%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B(app_name)%26nbsp%3Bwill%26nbsp%3Bbe%26nbsp%3Bable%26nbsp%3Bto%26nbsp%3Bread%26nbsp%3Byour%26nbsp%3Bprimary%26nbsp%3Bemail%26nbsp%3Baddress.%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3BMaintain%26nbsp%3Baccess%26nbsp%3Bto%26nbsp%3Bdata%26nbsp%3Byou%26nbsp%3Bhave%26nbsp%3Bgiven%26nbsp%3B(app_name)%26nbsp%3Baccess%26nbsp%3Bto%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3BAllows%26nbsp%3B(app_name)%26nbsp%3Bto%26nbsp%3Bsee%26nbsp%3Band%26nbsp%3Bupdate%26nbsp%3Bthe%26nbsp%3Bdata%26nbsp%3Byou%26nbsp%3Bgave%26nbsp%3Bit%26nbsp%3Baccess%26nbsp%3Bto%2C%26nbsp%3Beven%26nbsp%3Bwhen%26nbsp%3Byou%26nbsp%3Bare%26nbsp%3Bnot%26nbsp%3Bcurrently%26nbsp%3Busing%26nbsp%3Bthe%26nbsp%3Bapp.%26nbsp%3BThis%26nbsp%3Bdoes%26nbsp%3Bnot%26nbsp%3Bgive%26nbsp%3B(app_name)%26nbsp%3Bany%26nbsp%3Badditional%26nbsp%3Bpermissions.%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3BRead%26nbsp%3Band%26nbsp%3Bwrite%26nbsp%3Baccess%26nbsp%3Bto%26nbsp%3Byour%26nbsp%3Bemails%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B(app_name)%26nbsp%3Bwill%26nbsp%3Bbe%26nbsp%3Bable%26nbsp%3Bto%26nbsp%3Bread%2C%26nbsp%3Bupdate%2C%26nbsp%3Bcreate%26nbsp%3Band%26nbsp%3Bdelete%26nbsp%3Bemails%26nbsp%3Bin%26nbsp%3Byour%26nbsp%3Bmailbox.%26nbsp%3BDoes%26nbsp%3Bnot%26nbsp%3Binclude%26nbsp%3Bpermission%26nbsp%3Bto%26nbsp%3Bsend%26nbsp%3Bemails.%3C%2FSPAN%3E%3C%2FDIV%3E%3CBR%20%2F%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B-%26nbsp%3BAccept%26nbsp%3Bthis%26nbsp%3Bby%26nbsp%3Bclicking%26nbsp%3BYes%3C%2FSPAN%3E%3C%2FDIV%3E%3CBR%20%2F%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B-%26nbsp%3BI%26nbsp%3Bget%26nbsp%3Bredirected%26nbsp%3Bto%26nbsp%3Bthe%26nbsp%3Bfollowing%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B(my_redirect_uri)%3Fcode%3D(code)%26amp%3Bstate%3D12345%3C%2FSPAN%3E%3C%2FDIV%3E%3CBR%20%2F%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B-%26nbsp%3BI%26nbsp%3Buse%26nbsp%3Bthe%26nbsp%3Bcode%26nbsp%3Bto%26nbsp%3Bsend%26nbsp%3Banother%26nbsp%3Brequest%2C%26nbsp%3Bnow%26nbsp%3Bto%26nbsp%3Bobtain%26nbsp%3Btokens%2C%26nbsp%3Bto%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Flogin.microsoftonline.com%2Fcommon%2Foauth2%2Fv2.0%2Ftoken%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ehttps%3A%2F%2Flogin.microsoftonline.com%2Fcommon%2Foauth2%2Fv2.0%2Ftoken%3C%2FA%3E%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B-%26nbsp%3BWith%26nbsp%3Bthe%26nbsp%3Bfollowing%26nbsp%3Bkey%26nbsp%3Bvalue%26nbsp%3Bpairs%26nbsp%3Bin%26nbsp%3Bthe%26nbsp%3Bbody%3A%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B-%26nbsp%3Bclient_id%3A%26nbsp%3B(my_client_id)%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B-%26nbsp%3Bscope%3A%26nbsp%3Bopenid%26nbsp%3Bemail%26nbsp%3Boffline_access%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Foutlook.office.com%2FIMAP.AccessAsUser.All%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Foutlook.office.com%2FIMAP.AccessAsUser.All%3C%2FA%3E%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B-%26nbsp%3Bredirect_uri%3A%26nbsp%3B(my_redirect_uri)%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B-%26nbsp%3Bgrant_type%3A%26nbsp%3Bauthorization_code%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B-%26nbsp%3Bclient_secret%26nbsp%3B(my_client_secret)%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B-%26nbsp%3Bcode%3A%26nbsp%3B(code)%3C%2FSPAN%3E%3C%2FDIV%3E%3CBR%20%2F%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B-%26nbsp%3BAnd%26nbsp%3BI%26nbsp%3Bget%26nbsp%3Bthe%26nbsp%3Bfollowing%3A%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B-%26nbsp%3B%7B%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%22token_type%22%3A%26nbsp%3B%22Bearer%22%2C%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%22scope%22%3A%26nbsp%3B%22%3CA%20href%3D%22https%3A%2F%2Foutlook.office.com%2FIMAP.AccessAsUser.All%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Foutlook.office.com%2FIMAP.AccessAsUser.All%3C%2FA%3E%22%2C%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%22expires_in%22%3A%26nbsp%3B3600%2C%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%22ext_expires_in%22%3A%26nbsp%3B3600%2C%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%22access_token%22%3A%26nbsp%3B(access_token)%2C%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%22refresh_token%22%3A%26nbsp%3B(refresh_token)%2C%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%22id_token%22%3A%26nbsp%3B(id_token)%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%7D%3C%2FSPAN%3E%3C%2FDIV%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B-%26nbsp%3BNow%20with%20the%20the%26nbsp%3Baccess%26nbsp%3Btoken%20I%20create%26nbsp%3Bthe%26nbsp%3Bxoauth2%26nbsp%3Btoken.%26nbsp%3BOne%26nbsp%3Bway%26nbsp%3Bto%26nbsp%3Bdo%26nbsp%3Bit%26nbsp%3Bis%26nbsp%3Bin%26nbsp%3BJavascript%26amp%3Bcolon%3B%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B-%26nbsp%3Bbtoa(%22user%3D(the_user_that_gave_permission)%5Cx01auth%3DBearer%26nbsp%3B(access_token)%5Cx01%5Cx01%22)%3C%2FSPAN%3E%3C%2FDIV%3E%3CBR%20%2F%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B-%26nbsp%3BThis%26nbsp%3Bcreates%26nbsp%3Bthe%26nbsp%3Bxoauth2%26nbsp%3Btoken%26nbsp%3Bwhich%26nbsp%3BI%26nbsp%3Bthen%26nbsp%3Buse%26nbsp%3Bto%26nbsp%3Bconnect%26nbsp%3Bvia%26nbsp%3BIMAP%26nbsp%3Bin%26nbsp%3Bthis%26nbsp%3Bcase%2C%26nbsp%3Busing%26nbsp%3Bopenssl%3A%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B-%26nbsp%3Bopenssl%26nbsp%3Bs_client%26nbsp%3B-showcerts%26nbsp%3B-connect%26nbsp%3Boutlook.office365.com%3A993%26nbsp%3B-servername%26nbsp%3Boutlook.office365.com%26nbsp%3B-crlf%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B-%26nbsp%3B*%26nbsp%3BOK%26nbsp%3BThe%26nbsp%3BMicrosoft%26nbsp%3BExchange%26nbsp%3BIMAP4%26nbsp%3Bservice%26nbsp%3Bis%26nbsp%3Bready.%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B-%26nbsp%3B%3F%26nbsp%3BAUTHENTICATE%26nbsp%3BXOAUTH2%26nbsp%3B(xoauth2_token)%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B-%26nbsp%3B%3F%26nbsp%3BOK%26nbsp%3BAUTHENTICATE%26nbsp%3Bcompleted.%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B-%26nbsp%3BThen%26nbsp%3BI%26nbsp%3Bcan%26nbsp%3Bsee%26nbsp%3Bthe%26nbsp%3Bcontents%26nbsp%3Bof%26nbsp%3Bthe%26nbsp%3Binbox%26nbsp%3Be.g.%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B-%26nbsp%3B%3F%26nbsp%3BSELECT%26nbsp%3B%22INBOX%22%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B-%26nbsp%3B*%26nbsp%3B2%26nbsp%3BEXISTS%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B-%26nbsp%3B*%26nbsp%3B2%26nbsp%3BRECENT%3C%2FSPAN%3E%3C%2FDIV%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CDIV%3E%3CSPAN%3E-%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3BRequest%26nbsp%3Baccess%26nbsp%3Bto%26nbsp%3Bemails%26nbsp%3Bvia%26nbsp%3BPOP%26nbsp%3Busing%26nbsp%3BPostman%26nbsp%3B(it%26nbsp%3Bdoesn't%26nbsp%3Bwork)%3C%2FSPAN%3E%3C%2FDIV%3E%3CBR%20%2F%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B-%26nbsp%3BThe%26nbsp%3Bauthorize%26nbsp%3Burl%26nbsp%3Bnow%26nbsp%3Blooks%26nbsp%3Blike%26nbsp%3Bthis%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B-%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Flogin.microsoftonline.com%2Fcommon%2Foauth2%2Fv2.0%2Fauthorize%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ehttps%3A%2F%2Flogin.microsoftonline.com%2Fcommon%2Foauth2%2Fv2.0%2Fauthorize%3C%2FA%3E%3F%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3Bclient_id%3D(my_client_id)%26amp%3B%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3Bresponse_type%3Dcode%26amp%3B%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3Bredirect_uri%3D(my_redirect_uri)%26amp%3B%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3Bresponse_mode%3Dquery%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26amp%3Bscope%3D%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3Bopenid%2520%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3Bemail%2520%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3Boffline_access%2520%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3Bhttps%253A%252F%252Foutlook.office.com%252FPOP.AccessAsUser.All%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26amp%3B%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3Bstate%3D12345%3C%2FSPAN%3E%3C%2FDIV%3E%3CBR%20%2F%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B-%26nbsp%3BAnd%26nbsp%3Bthe%26nbsp%3Bpopup%26nbsp%3Bnow%26nbsp%3Bsays%3A%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B-%26nbsp%3B%26nbsp%3B(app_name)%26nbsp%3Bneeds%26nbsp%3Byour%26nbsp%3Bpermission%26nbsp%3Bto%3A%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3BRead%26nbsp%3Band%26nbsp%3Bwrite%26nbsp%3Baccess%26nbsp%3Bto%26nbsp%3Byour%26nbsp%3Bemails%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B(app_name)%26nbsp%3Bwill%26nbsp%3Bbe%26nbsp%3Bable%26nbsp%3Bto%26nbsp%3Bread%2C%26nbsp%3Bupdate%2C%26nbsp%3Bcreate%26nbsp%3Band%26nbsp%3Bdelete%26nbsp%3Bemails%26nbsp%3Bin%26nbsp%3Byour%26nbsp%3Bmailbox.%26nbsp%3BDoes%26nbsp%3Bnot%26nbsp%3Binclude%26nbsp%3Bpermission%26nbsp%3Bto%26nbsp%3Bsend%26nbsp%3Bemails.%3C%2FSPAN%3E%3C%2FDIV%3E%3CBR%20%2F%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B-%26nbsp%3BI%26nbsp%3Bclick%26nbsp%3BYes%2C%26nbsp%3BI%26nbsp%3Bget%26nbsp%3Bredirected%26nbsp%3Bwith%26nbsp%3Ba%26nbsp%3Bcode%26nbsp%3Bas%26nbsp%3Bbefore%3C%2FSPAN%3E%3C%2FDIV%3E%3CBR%20%2F%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B-%26nbsp%3BSo%26nbsp%3BI%26nbsp%3Buse%26nbsp%3Bthe%26nbsp%3Bcode%26nbsp%3Bto%26nbsp%3Bsend%26nbsp%3Banother%26nbsp%3Brequest%2C%26nbsp%3Bnow%26nbsp%3Bto%26nbsp%3Bobtain%26nbsp%3Btokens%2C%26nbsp%3Bto%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Flogin.microsoftonline.com%2Fcommon%2Foauth2%2Fv2.0%2Ftoken%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ehttps%3A%2F%2Flogin.microsoftonline.com%2Fcommon%2Foauth2%2Fv2.0%2Ftoken%3C%2FA%3E%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B-%26nbsp%3BWith%26nbsp%3Bthe%26nbsp%3Bfollowing%26nbsp%3Bkey%26nbsp%3Bvalue%26nbsp%3Bpairs%26nbsp%3Bin%26nbsp%3Bthe%26nbsp%3Bbody%3A%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B-%26nbsp%3Bclient_id%3A%26nbsp%3B(my_client_id)%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B-%26nbsp%3Bscope%3A%26nbsp%3Bopenid%26nbsp%3Bemail%26nbsp%3Boffline_access%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Foutlook.office.com%2FPOP.AccessAsUser.All%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Foutlook.office.com%2FPOP.AccessAsUser.All%3C%2FA%3E%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B-%26nbsp%3Bredirect_uri%3A%26nbsp%3B(my_redirect_uri)%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B-%26nbsp%3Bgrant_type%3A%26nbsp%3Bauthorization_code%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B-%26nbsp%3Bclient_secret%26nbsp%3B(my_client_secret)%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B-%26nbsp%3Bcode%3A%26nbsp%3B(code)%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B-%26nbsp%3BI%26nbsp%3Bget%26nbsp%3Bthe%26nbsp%3Bfollowing%26nbsp%3Bresponse%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B-%26nbsp%3B%7B%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%22token_type%22%3A%26nbsp%3B%22Bearer%22%2C%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%22scope%22%3A%26nbsp%3B%22%3CA%20href%3D%22https%3A%2F%2Foutlook.office.com%2FPOP.AccessAsUser.All%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Foutlook.office.com%2FPOP.AccessAsUser.All%3C%2FA%3E%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Foutlook.office.com%2FIMAP.AccessAsUser.All%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Foutlook.office.com%2FIMAP.AccessAsUser.All%3C%2FA%3E%22%2C%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%22expires_in%22%3A%26nbsp%3B3600%2C%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%22ext_expires_in%22%3A%26nbsp%3B3600%2C%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%22access_token%22%3A%26nbsp%3B(access_token)%2C%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%22refresh_token%22%3A%26nbsp%3B(refresh_token)%2C%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%22id_token%22%3A%26nbsp%3B(id_token)%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%7D%3C%2FSPAN%3E%3C%2FDIV%3E%3CBR%20%2F%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B-%26nbsp%3BCreate%26nbsp%3Bthe%26nbsp%3Bxoauth2%26nbsp%3Btoken%2C%26nbsp%3Buse%26nbsp%3Bopenssl%26nbsp%3Bto%26nbsp%3Bconnect%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B-%26nbsp%3Bopenssl%26nbsp%3Bs_client%26nbsp%3B-showcerts%26nbsp%3B-connect%26nbsp%3Boutlook.office365.com%3A995%26nbsp%3B-servername%26nbsp%3Boutlook.office365.com%26nbsp%3B-crlf%3C%2FSPAN%3E%3C%2FDIV%3E%3CBR%20%2F%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%2BOK%26nbsp%3BThe%26nbsp%3BMicrosoft%26nbsp%3BExchange%26nbsp%3BPOP3%26nbsp%3Bservice%26nbsp%3Bis%26nbsp%3Bready.%26nbsp%3B%5BTABPADIAUAAyADYANQBDAEEAMAAzADcANwAuAEcAQgBSAFAAMgA2ADUALgBQAFIATwBEAC4ATwBVAFQATABPAE8ASwAuAEMATwBNAA%3D%3D%5D%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3BAUTH%26nbsp%3BXOAUTH2%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%2B%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B(xoauth2_token)%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B-ERR%26nbsp%3BAuthentication%26nbsp%3Bfailure%3A%26nbsp%3Bunknown%26nbsp%3Buser%26nbsp%3Bname%26nbsp%3Bor%26nbsp%3Bbad%26nbsp%3Bpassword.%3C%2FSPAN%3E%3C%2FDIV%3E%3CBR%20%2F%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3E-%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3BIt%26nbsp%3Bfails%2C%26nbsp%3Bso%26nbsp%3BI%26nbsp%3Bnow%26nbsp%3Bcreate%26nbsp%3Banother%26nbsp%3Bemail%26nbsp%3Baccount%26nbsp%3Bfrom%26nbsp%3Bscratch%2C%26nbsp%3Bonly%26nbsp%3Basking%26nbsp%3Bfor%26nbsp%3BPOP3%2C%26nbsp%3Bin%26nbsp%3Bcase%26nbsp%3Bthe%26nbsp%3Bfact%26nbsp%3B%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3Ethat%26nbsp%3BI%26nbsp%3Bwas%26nbsp%3Basking%26nbsp%3Bfor%26nbsp%3BIMAP%26nbsp%3Band%26nbsp%3BPOP%26nbsp%3Bis%26nbsp%3Bcausing%26nbsp%3Bany%26nbsp%3Bconflict%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3E-%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3BWhen%26nbsp%3BI%26nbsp%3Bcreate%26nbsp%3Bthe%26nbsp%3Baccount%2C%26nbsp%3BI%26nbsp%3Ballow%26nbsp%3Bthis%26nbsp%3Baccount%26nbsp%3Bto%26nbsp%3Bbe%26nbsp%3Bconnected%26nbsp%3Bvia%26nbsp%3BPOP3%26nbsp%3Bsame%26nbsp%3Bas%26nbsp%3Bthe%26nbsp%3Bprevious%26nbsp%3B%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3Eone%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3E-%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3BSend%26nbsp%3Bthe%26nbsp%3Bauthorize%20request%2C%20accept%20it%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3E-%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3BGet%26nbsp%3Bthe%26nbsp%3Bcode%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3E-%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3BWith%26nbsp%3Bthe%26nbsp%3Bcode%2C%26nbsp%3BI%26nbsp%3Bask%26nbsp%3Bfor%26nbsp%3Btokens%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3E-%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3BGet%26nbsp%3Ba%26nbsp%3Bresponse%26nbsp%3Be.g.%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3E-%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%7B%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%22token_type%22%3A%26nbsp%3B%22Bearer%22%2C%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%22scope%22%3A%26nbsp%3B%22%3CA%20href%3D%22https%3A%2F%2Foutlook.office.com%2FPOP.AccessAsUser.All%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Foutlook.office.com%2FPOP.AccessAsUser.All%3C%2FA%3E%22%2C%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%22expires_in%22%3A%26nbsp%3B3600%2C%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%22ext_expires_in%22%3A%26nbsp%3B3600%2C%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%22access_token%22%3A%26nbsp%3B(access_token)%2C%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%22refresh_token%22%3A%26nbsp%3B(refresh_token)%2C%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%22id_token%22%3A%26nbsp%3B(id_token)%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%7D%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3E-%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3BCreate%26nbsp%3Bthe%26nbsp%3Bxoauth2%26nbsp%3Btoken%2C%26nbsp%3Band%26nbsp%3Bsame%26nbsp%3Berror%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3E-%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3BERR%26nbsp%3BAuthentication%26nbsp%3Bfailure%3A%26nbsp%3Bunknown%26nbsp%3Buser%26nbsp%3Bname%26nbsp%3Bor%26nbsp%3Bbad%26nbsp%3Bpassword.%3C%2FSPAN%3E%3C%2FDIV%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3BDoes%26nbsp%3Banyone%26nbsp%3Bknow%26nbsp%3Bwhat%26nbsp%3Bis%26nbsp%3Bthe%26nbsp%3Bproblem%2C%26nbsp%3Bor%26nbsp%3Bwhat%26nbsp%3Bam%26nbsp%3BI%26nbsp%3Bmissing%3F%26nbsp%3Bthis%26nbsp%3Bwas%26nbsp%3Bworking%26nbsp%3Bcorrectly%26nbsp%3Ba%26nbsp%3Bfew%26nbsp%3Bmonths%26nbsp%3Bago.%26nbsp%3BIs%26nbsp%3Bthere%26nbsp%3Ba%26nbsp%3Bway%26nbsp%3Bthat%26nbsp%3BI%26nbsp%3Bcan%26nbsp%3Bsee%26nbsp%3Bthe%26nbsp%3Bstatus%26nbsp%3Bof%26nbsp%3Bthe%26nbsp%3BPOP3%26nbsp%3Bservers%3F%26nbsp%3BOr%26nbsp%3Bcan%26nbsp%3Bget%26nbsp%3Ba%26nbsp%3Bbit%26nbsp%3Bmore%26nbsp%3Binformation%26nbsp%3Babout%26nbsp%3Bwhat%26nbsp%3Bis%26nbsp%3Bcausing%26nbsp%3Bthis%26nbsp%3Bissue%3F%3C%2FSPAN%3E%3C%2FDIV%3E%3CBR%20%2F%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3BThanks%26nbsp%3Bin%26nbsp%3Badvance.%3C%2FSPAN%3E%3C%2FDIV%3E%3C%2FDIV%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3C%2FLINGO-BODY%3E
New Contributor

Hello, I implemented OAuth2 for authenticating an IMAP and POP connection for Outlook.com accounts in my app, using the authorization code flow, following the steps defined in https://docs.microsoft.com/en-us/exchange/client-developer/legacy-protocols/how-to-authenticate-an-i...

 

I implemented this in Node.js a few months ago and it was working correctly. However recently POP3 stopped working, whilst IMAP still works fine. POP3 works correctly when using Basic Authentication (username + password)

 

There are the steps I follow to see if the process works correctly (outside of my Node.js app). Please correct me if anything is wrong:

 

1. Create an app

- Go to portal.azure.com/#home

- Manage Azure Active Directory / View

- App registrations / New Registration

    - Set the name

    - Set the supported account types to:

        - "Accounts in any organizational directory (Any Azure AD directory - Multitenant) and personal Microsoft accounts (e.g. Skype, Xbox)"

    - Set the redirect URI to https://(myapp)/callback/

    - Create a secret: Certificates and secrets / New Client Secret (Set the name and the expiry time to 24 months)

    - Set up permissions: API permissions / Add a permission / Microsoft Graph / Delegated permissions / add "openid", "offline_access", "POP.AccessAsUser.All", "IMAP.AccessAsUser.All". Then I remove the "User.Read" permission set by default.

 

- I get the Application (client) ID and the client secret that I will use later in my requests

 

2. Create an account that I will connect to

- Go to outlook.live.com/owa. Sign In / Create New Account / Set the new account details

- Then Settings / POP and IMAP / Set "Let devices and apps use POP" to Yes, and select "Let apps and devices delete messages from Outlook"

 

3. Request access to emails via IMAP using Postman (this works correctly)

- Create the following url which I paste in a browser

 

https://login.microsoftonline.com/common/oauth2/v2.0/authorize?
    client_id=(my_client_id)&
    response_type=code&
    redirect_uri=(my_redirect_uri)&
    response_mode=query&
    scope=
        openid%20
        email%20
        offline_access%20
        https%3A%2F%2Foutlook.office.com%2FIMAP.AccessAsUser.All
        &
    state=12345

 

 

- This will show a popup which I click Yes, and I get redirected to

 

(my_redirect_uri)?code=(code)&state=12345

 

- I use the code to send another request, now to obtain tokens, to https://login.microsoftonline.com/common/oauth2/v2.0/token with the following key-value pairs in the body

 

client_id: (my_client_id)
scope: openid email offline_access https://outlook.office.com/IMAP.AccessAsUser.All
redirect_uri: (my_redirect_uri)
grant_type: authorization_code
client_secret (my_client_secret)
code: (code)

 

- And I get the following:

 

{
  "token_type": "Bearer",
  "scope": "https://outlook.office.com/IMAP.AccessAsUser.All",
  "expires_in": 3600,
  "ext_expires_in": 3600,
  "access_token": (access_token),
  "refresh_token": (refresh_token),
  "id_token": (id_token)
}

 

- Now with the access token I create the xoauth2 token. One way to create it is in Javascript

 

btoa("user=(the_user_that_gave_permission)\x01auth=Bearer (access_token)\x01\x01")

 

- This creates the xoauth2 token, which I then use to connect via IMAP using openssl:

 

openssl s_client -showcerts -connect outlook.office365.com:993 -servername outlook.office365.com -crlf
* OK The Microsoft Exchange IMAP4 service is ready.
? AUTHENTICATE XOAUTH2 (xoauth2_token)
? OK AUTHENTICATE completed.

 

Then I can see the contents of the inbox, e.g.

 

? SELECT "INBOX"
* 2 EXISTS
* 2 RECENT

 

 

4. Request access to emails via POP using Postman (it doesn't work)

 

- The authorize url now looks like this

 

https://login.microsoftonline.com/common/oauth2/v2.0/authorize?
  client_id=(my_client_id)&
  response_type=code&
  redirect_uri=(my_redirect_uri)&
  response_mode=query&
  scope=
    openid%20
    email%20
    offline_access%20
    https%3A%2F%2Foutlook.office.com%2FPOP.AccessAsUser.All
  &
  state=12345​

 

- Get the popup again, click Yes, get redirected with a code as before

- Use the code to send another request to https://login.microsoftonline.com/common/oauth2/v2.0/token to obtain tokens for POP, with the following key value pairs in the body:

 

client_id: (my_client_id)
scope: openid email offline_access https://outlook.office.com/POP.AccessAsUser.All
redirect_uri: (my_redirect_uri)
grant_type: authorization_code
client_secret (my_client_secret)
code: (code)

 

- I get the following response

 

{
  "token_type": "Bearer",
  "scope": "https://outlook.office.com/POP.AccessAsUser.All https://outlook.office.com/IMAP.AccessAsUser.All",
  "expires_in": 3600,
  "ext_expires_in": 3600,
  "access_token": (access_token),
  "refresh_token": (refresh_token),
  "id_token": (id_token)
}

 

- Create the xoauth2 token, connect via openssl:

 

openssl s_client -showcerts -connect outlook.office365.com:995 -servername outlook.office365.com -crlf
+OK The Microsoft Exchange POP3 service is ready. [TABPADIAUAAyADYANQBDAEEAMAAzADcANwAuAEcAQgBSAFAAMgA2ADUALgBQAFIATwBEAC4ATwBVAFQATABPAE8ASwAuAEMATwBNAA==]
AUTH XOAUTH2
+
(xoauth2_token)
-ERR Authentication failure: unknown user name or bad password.

 

 

- It fails. I create another email account from scratch, only asking for POP3, in case the fact that I was asking for IMAP and POP is causing a conflict. When I create this new account, allow POP3 connections as mentioned before. Follow all the steps mentioned above, and it fails to connect again.

 

- Can anyone help me with what is the problem, or what am I missing? this was working correctly a few months ago. Is there a way that I can see the status of the POP3 servers? Or a wait to get information about what is causing this issue?

 

Thanks in advance.

0 Replies