Problemas de inicio de sesión office365 AADSTS50011

I’m having trouble logging in to an application Discourse that uses the Office365 login plugin.

AADSTS50011: The reply URL specified in the request does not match the reply URLs configured for the application: ‘309a2bc9-dbe3-4346-b4fe-2a348ca7d934’.

Request Id: 25814e60-934a-4d89-b671-8acbb02e8c00
Correlation Id: 9a1f4ffd-0b15-4d65-a86a-d3216bda0d00
Timestamp: 2021-01-25T06:59:58Z
Message: AADSTS50011: The reply URL specified in the request does not match the reply URLs configured for the application: ‘309a2bc9-dbe3-4346-b4fe-2a348ca7d934’.

Machine - bitnami
Discourse software

What could be the reasons for this error?

Encontré este tema y otros similares aquí, cuando investigaba cómo resolver el problema de autorización de O365 después de mover el servidor detrás de un proxy.

Para aquellos que lleguen a este tema desde la búsqueda, tengan en cuenta dos puntos:

  1. Comprueba si la opción force_https está habilitada.
  2. Si tu Discourse está detrás de un proxy SSL, prueba la configuración proxy_set_header X-Forwarded-Proto \"https\"; en la configuración de Nginx de tu servidor Discourse.
Detalles

Facebook Login Error: CSRF detected - #3 by Ivan_Rapekas