We have a custom webservice we use to connect to customer's D365 for Sales in the cloud. We have one instance of the webservice for each customer. This is working for all customers but one and we are getting ERROR REQUESTING Token FROM THE Authentication context - General ADAL Error. The only thing that differs in the connection to the different customers is the connection string. The code is exactly the same for each customer. Here's the details:
- Connection string uses OAuth with the Microsoft global APP ID and Redirect URL
- We tested with a non-interactive and interactive account we use to login to the interface and get the same error
- We force TLS1.2 in the code with ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
- We checked with the customer and they do not have MFA turned on for the accounts we are using to access or any other conditional access
My hunch is that the customer has some setting in their Azure AD but i have no idea what it can be and we have no visibility of it. Is there anything else i can do/try/test?