obiba / mica2

Mica is a web portal for epidemiological study consortia.
http://www.obiba.org/pages/products/mica/
GNU General Public License v3.0
10 stars 15 forks source link

Docker - mica - logout #4423

Closed massej closed 11 months ago

massej commented 11 months ago

This issue is unique

Version information

5.2.3

Expected behavior

Logout should work

Actual behavior

In mica 5.2.3 using docker, the agate url is replaced by the docker agate hostname which is not the valid hostname.

(https://github.com/obiba/mica2/blob/bf9efc77d48a6414594b38b1a8356c564ec7a6ce/mica-webapp/src/main/java/org/obiba/mica/web/controller/SignController.java#L138)

It will be replaced by https://obiba-agate:8444/ so the logout will never work in a docker.

Reproduction steps

  1. Login into mica
  2. Use the logout on the right
image

The sign out will try to go to https://obiba-agate:8444/

Operating System (OS)

Linux

Browser

Google Chrome

Contact info

No response

kazoompa commented 11 months ago

Hi,

Mica Demo also is a docker container and configured via a docker-compose and this issue does not exist.

Please provide more information regarding your setup and OBiBa stack configuration.

Best,

massej commented 11 months ago

AGATE_URL : https://obiba-agate:8444

We are using a WAF (web application firewall) for our Docker and we cannot do a loop back using the same URL. (i.e. we cannot use the external link from a container), so we cannot do AGATE_URL : https://agate.mydomain.com

massej commented 11 months ago

We changed our hosts file in the docker and it point to an internal reverse proxy so the https communication stay internal and the WAF is not blocking it.