# URI error (URL Redirection) Dolibarr OAuth2 module

**URL:** <https://www.dolibarr.org/forum/t/uri-error-url-redirection-dolibarr-oauth2-module/24350>\
**Category:** Other native modules\
**Created:** [September 28, 2023, 9:05am UTC](https://www.dolibarr.org/forum/t/uri-error-url-redirection-dolibarr-oauth2-module/24350 "2023-09-28T09:05:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Schesco](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/s/34f0e0/32.png) [@Schesco](https://www.dolibarr.org/forum/u/Schesco)\
**Post date:** [September 28, 2023, 9:05am UTC](https://www.dolibarr.org/forum/t/uri-error-url-redirection-dolibarr-oauth2-module/24350/1 "2023-09-28T09:05:53Z")

</div>

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](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](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?

---

<div class="post-metadata">

**Author:** ![Schesco](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/s/34f0e0/32.png) [@Schesco](https://www.dolibarr.org/forum/u/Schesco)\
**Post date:** [September 28, 2023, 12:18pm UTC](https://www.dolibarr.org/forum/t/uri-error-url-redirection-dolibarr-oauth2-module/24350/2 "2023-09-28T12:18:34Z")

</div>

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

`htdocs/conf/conf.php`
