Microsoft 365 Exchange Integration

SOLVED

Hi All,

I am having trouble with an Exchange integration; it is all related to the OAuth method of authentication now that basic authentication has been removed.

I have managed to set up e-mail out, with which I needed to establish the OAuth connection to my client's Microsoft 365 setup.  This obviously required me to set up an app in the Azure admin centre, which got me a client id, a secret etc.  This works fine.  Now I have moved on to try to set up the Exchange integration component and am having trouble.  I am using these settings:

The web service url is the same as that used for the e-mail setup, and the client id similarly.  Everything looks fine but when I click on Save I get an error message:

AADSTS50011: The reply URL specified in the request does not match the reply URLs configured for the application: 'xxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx'. More details: Reply address did not match because of case sensitivity.

So case sensitivity seems to be the issue here.  In my Azure app the defined redirect url is http://localhost/crm/custompages/oauth/callback.html as per the instructions.

My questions are:

Is the web url the same one as that used for the e-mail setup?

Can I use the same client id or do I have to set up another OAuth authentication?  If so, what url do I add?

Has anyone seen this before?

Many thanks,

Guy