URI error (URL Redirection) Dolibarr OAuth2 module

Hello,

I have a problem configuring the Oauth2 module on Dolibarr V18 with Microsoft.

The URI provided by the module is: http://mydolibarr/core/modules/oauth/microsoft_oauthcallback.php

My Dolibarr access URL is HTTPS. Azure does not accept HTTP URIs. So when I try to generate a token I get the following error:

“AADSTS50011: The redirect URI ’ http://mydolibarr/core/modules/oauth/microsoft_oauthcallback.php ’ specified in the request does not match the redirect URIs configured for the application ’ Dolibarr '. Make sure the redirect URI sent in the request matches one added to your application in the Azure portal.”

Do someone know how to change the module URI?

The url of your dolibarr installation is defined in the configuration file.

htdocs/conf/conf.php