We are to integrate Dynamics 365 V9.1 on premise with exchange online.
The procedure described by Microsoft page is followed step by step
- The Dynamics 365 hybrid connector is installed
- The app required to register the certificate is created on the tenant
- A valid certificate required for the S2S setup is installed in the CRM and deployed with the script provided on Github, the scrip is executed with success and the certificate deployment is checked
- The email server profile (Exchange online hybrid) is created.
The issue start with the connectivity test. CRM request an ACS token presented to EWS and the return is an error 401 because EWS doesn't expect this token issued by ACS.
EWS receive a request but the token presented is not accepted:
WWW-Authenticate: Bearer client_id="00000002-0000-0ff1-ce00-000000000000", trusted_issuers="00000001-0000-0000-c000-000000000000@*", token_types="app_asserted_user_v1 service_asserted_app_v1", authorization_uri=", error="invalid_token"
The procedure for the setup is follow step by step. We are blocked.
Does someone meet the same issue in the forum, all the good idea are welcome.
We went in detail on the analysed tracing the traffic for the connection. The conclusion is ACS is not supported, or perhaps supported if some condition are met.