Ir al contenido
Menú
Se marcó esta pregunta
2 Respuestas
2617 Vistas

Hi,


I have an on-premise installation of Odoo 16.0 (Community Edition).  I want to configure Inbound/Outbound email servers with Outlook service hosted in Azure.


I followed all the steps detailed here:  https://www\.odoo\.com/documentation/16\.0/administration/maintain/azure_oauth\.html


When\ I\ configure\ the\ outgoing\ email\ server,\ I\ click\ on\ Connect\ your\ Outlook\ account\ and\ authenticate\ in\ Azure\. \ After\ authentication,\ all\ I\ get\ is\ an\ error\ message\ in\ the\ Azure\ authentication\ page\ saying AADSTS900971:\ No\ reply\ address\ provided\.


When\ I\ configure\ the\ incoming\ email\ server,\ I\ get\ the\ exact\ same\ result\.


I\ tried\ to\ find\ what\ is\ causing\ this\ error\ and\ it\ seems\ to\ be\ caused\ by\ a\ missing\ Redirect\ URL\ \(see

https://answers.microsoft.com/en-us/msteams/forum/all/aadsts900971-no-reply-address-provided/1967cfa2-fde1-4359-b66d-bc5b0d7dacfe).  I triple-checked the settings in Azure and everything looks fine...


Here's the config I have in Azure...


Here's the global config I have in Odoo:


Here's the config I have for the Outgoing email server:



What else can I check to resolve this error?


Thanks in advance!



Avatar
Descartar
Mejor respuesta

Hello Ghislain Gadbois,


The "Redirect URI" for the Outlook/Azure services should be as follows.

Please refer this documentation for the same: https://www.odoo.com/documentation/16.0/applications/productivity/calendar/outlook.html?highlight=microsoft_account%20authentication

Redirect URI: https://{DOMAIN}/microsoft_account/authentication

Thanks & Regards,
Email:  odoo@aktivsoftware.com 

Skype: kalpeshmaheshwari

Avatar
Descartar
Autor Mejor respuesta

Hi all,

I found something that could lead me in the right direction, but need some help to figure out how Odoo can be configured to "behave" properly...

In the documentation referenced in my original post (https://www\.odoo\.com/documentation/16\.0/administration/maintain/azure_oauth\.html\),\ it\ says\ to\ add\ the\ redirect\ URL\ to\ the\ Azure\ configuration\ using\ that\ format: \ https://\.\.\./microsoft_outlook/confirm\.

I\ used\ Fiddler\ to\ intercept\ the\ authentication\ request\ sent\ by\ Odoo\ to\ Outlook\ and\ here's\ what\ I\ got:


Odoo\ clearly\ sent\ a\ redirect_uri\ starting\ with\ http://,\ which\ is\ not\ supported\ by\ Azure\ \(as\ stated\ here: https://learn\.microsoft\.com/en\-us/azure/active\-directory/develop/reply\-url\)\.

Odoo\ is\ behind\ a\ reverse\ proxy\ that\ forwards\ all\ http\ traffic\ to\ https\ as\ mentionned\ in\ the\ Odoo\ documentation\ \(https://www.odoo.com/documentation/15.0/administration/install/deploy.html?highlight=proxy_mode).

Here is my odoo.conf file...

[options]

admin_passwd = *****

db_host = False

db_port = False

db_user = *****

db_password = False

xmlrpc_port = 8069

logfile = /var/log/odoo/odoo.log

addons_path = /opt/odoo/odoo/addons,/opt/odoo/custom-addons

proxy_mode = True


Is there a way to tell Odoo to use https in the redirect_uri?


Thanks in advance!


Best regards!




Avatar
Descartar
Autor

Hi all,

I managed to go a little further with this issue...

I found another question with a similar problem here: https://www.odoo.com/fr_FR/forum/aide-1/uri-mismatch-on-outlook-calandar-option-and-ms365-209247

So I followed the steps mentionned:
1. Activate Developer mode
2. Go to Settings / Tecnical / System parameters
3. Changed web.base.url to https://odoo.mydomain.com

Then, I managed to complete the Outook authentication.

Now, I'm waiting my system administrator to approve the connection...

Hope this helps someone some day!

Best regards!

Autor

I also noticed that web.base.url sometimes reverts back to the http://... value...

Adding a new parameter web.base.url.freeze = true seems to have solved this problem (see https://www.odoo.com/fr_FR/forum/aide-1/web-base-url-automatic-reset-31937).

Publicaciones relacionadas Respuestas Vistas Actividad
1
jul 24
3110
2
jul 24
5014
0
mar 15
3892
1
mar 25
2655
2
jul 24
5795