Unable to login with minimal Docker Config

I have…

  • [X] Checked the logs and have uploaded a log file and provided a link because I found something suspicious there. Please do not post the log file in the topic because very often something important is missing.

I’m submitting a…

  • [ ] Regression (a behavior that stopped working in a new release)
  • [X ] Bug report
  • [ ] Performance issue
  • [ ] Documentation issue or request

Current behavior

With even a minimal configuration, it’s not possible to log in

Expected behavior

Able to log in.

Minimal reproduction of the problem

Create a dockerfile with the following:

version: '2.4'
services:
  squidex_mongo:
    image: mongo:latest
    volumes:
      - content_management_data:/data/db
    networks:
      - internal
    restart: unless-stopped
  squidex_squidex:
    image: "squidex/squidex:latest"
    ports:
      - "8080:80"
    environment:
      - URLS__BASEURL=http://localhost:8080/
      - URLS__ENFORCEHTTPS=False
      - EVENTSTORE__MONGODB__CONFIGURATION=mongodb://squidex_mongo
      - STORE__MONGODB__CONFIGURATION=mongodb://squidex_mongo
      - IDENTITY__ADMINEMAIL=test@test.com
      - IDENTITY__ADMINPASSWORD=Test123#4
      - IDENTITY__ADMINRECREATE=True
      - IDENTITY__GOOGLECLIENT=
      - IDENTITY__GOOGLESECRET=
      - IDENTITY__GITHUBCLIENT=
      - IDENTITY__GITHUBSECRET=
      - IDENTITY__MICROSOFTCLIENT=
      - IDENTITY__MICROSOFTSECRET=

    depends_on:
      - squidex_mongo

    volumes:
      - content_management_assets:/app/Assets

    networks:
      - internal

    restart: unless-stopped
  
networks:
  internal:

volumes:
  content_management_data:
  content_management_assets:

When attempting to log in, if the user/pass is incorrect, we correctly receive a “Email or password not correct” message

However when providing the correct user/pass, the user is not logged in,

The message in the logs reads:
“message”: “Showing login: User is not authenticated”,

Environment

  • [X ] Self hosted with docker
  • [ ] Self hosted with IIS
  • [ ] Self hosted with other version
  • [ ] Cloud version

Version:latest

Browser:

  • [ X] Chrome (desktop)
  • [ ] Chrome (Android)
  • [ ] Chrome (iOS)
  • [ ] Firefox
  • [ ] Safari (desktop)
  • [ ] Safari (iOS)
  • [ ] IE
  • [ ] Edge

You need to run squidex with https.