Rank: Newbie
Groups: Registered
Joined: 8/21/2023(UTC)
Posts: 1
Location: Moscow
My desktop application needs to download mail from an office 365. I am trying to connect to the server using the code (VBS) from the documentation (protocol - MailServerEWS, authorization type - MailServerAuthXOAUTH2) by userEmail and accessToken. The server returns a 403 Server Error. Access and roles office 365 are administered by the client. AccessToken obtained using tenantid and client_secret has the following structure { "aud": "https://outlook.office365.com", "iss": "https://sts.windows.net/********-****-****-****-************/", "iat": 1692274954, "nbf": 1692274954, "exp": 1692278854, "aio": "E2FgYGA++CiFYa2MdXr8ed6wtUaXAQ==", "app_displayname": "Application Name "appid": "********-****-****-****-************", "appidacr": "1", "idp": "https://sts.windows.net/********-****-****-****-************/", "oid": "********-****-****-*****************", "rh": "*.******_*************-******************************.", "roles": [ "POP.AccessAsApp", "IMAP.AccessAsApp", "SMTP.SendAsApp" ], "sid": "********-****-****-****-************", "sub": "********-****-****-****-************", "tid": "********-****-****-****-************", "uti": "**********************", "ver": "1.0", "wids": [ "********-****-****-****-************" ] } What settings should be set by the administrator in office 365 for access via the EWS protocol? What besides office 365 settings can affect access to the server?
Rank: Administration
Groups: Administrators
Joined: 11/11/2010(UTC) Posts: 1,153
Thanks: 9 times Was thanked: 55 time(s) in 55 post(s)
Forum Jump
EmailArchitect Support
Email Component Development
- EASendMail SMTP Component - .NET Version
- EASendMail SMTP Component - Windows Store Apps
- EASendMail SMTP ActiveX Object
- EAGetMail POP3 & IMAP4 Component - .NET Version
- EAGetMail POP3 & IMAP4 ActiveX Object
Exchange Server and IIS SMTP Plugin
- DomanKeys/DKIM for Exchange Server and IIS SMTP
- Disclaimer and S/MIME for Exchange Server and IIS
EmailArchitect Email Server
- EmailArchitect Email Server (General)
- EmailArchitect Email Server Development
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.