Skip to content

OIDC - Third party login failure #1259

Description

@valentin8709

Describe Your Issue

Hi,

First thank you for this amazing project ! I am using AdventureLog for a while, and I am just trying to set an Identity Provider (Authentik). I already have successful connection with other services, but not with AdventureLog.

I followed the instructions in the documentation. When I click "Continue with Authentik", the redirection works well, I can log in with my Authentik user, which is allowed to access AdventureLog. After successful Authentik connection, AdventureLog says "Third-party login failure".

I checked the logs but there is nothing, even with debug=True, except a 404 on a favicon (I do not know if it is related) .

I have pasted my docker compose configuration and here is the admin page of social account :

Image

I am using Synology reverse proxy, therefore I needed to tweak it like mentionned here : https://mariushosting.com/synology-nginx-reverse-proxy-how-to-fix-502-bad-gateway-error/

I am using a self signed certificate for Authentik (portal.exemple.local in my pasted compose file), therefore I set it up inside AdventureLog with "REQUESTS_CA_BUNDLE" env variable.

Do I made something wrong ?

Thanks for your help =)

Docker Compose (Obfuscated)

services:
  app:
    image: ghcr.io/seanmorley15/adventurelog:latest
    container_name: adventurelog
    restart: unless-stopped
    environment:
      SITE_URL: https://wiki.exemple.local
      POSTGRES_PASSWORD: XXX
      PGHOST: db
      POSTGRES_DB: database
      POSTGRES_USER: adventure
      PORT: "3000"
      DJANGO_ADMIN_USERNAME: admin
      DJANGO_ADMIN_PASSWORD: XXX
      DJANGO_ADMIN_EMAIL: mail@provider.com
      DISABLE_REGISTRATION: True
      DISABLE_REGISTRATION_MESSAGE: La création de  nouveau compte est désactivée, merci de contacter jéjé
      SOCIALACCOUNT_ALLOW_SIGNUP: True
      ACCOUNT_EMAIL_VERIFICATION: none
      REQUESTS_CA_BUNDLE: /etc/ssl/certs/portal.crt
      CSRF_TRUSTED_ORIGINS: https://portal.exemple.local, https://wiki.exemple.local
      DEBUG: True
    ports:
      - "127.0.0.1:8082:80"
    volumes:
      - /volume1/docker/adventurelog/media/:/code/media/
      - /volume1/docker/adventurelog/certificates/:/etc/ssl/certs/
    depends_on:
      db:
        condition: service_healthy
    networks:
      - adventure-log
    mem_limit: 1024m
    healthcheck:
      test:
        [
          "CMD-SHELL",
          "python3 -c \"import urllib.request; urllib.request.urlopen('http://127.0.0.1:80/health')\""
        ]
      interval: 30s
      timeout: 5s
      retries: 5
      start_period: 120s

  db:
    image: postgis/postgis:16-3.5
    container_name: adventurelog-db
    restart: unless-stopped
    environment:
      POSTGRES_DB: database
      POSTGRES_USER: adventure
      POSTGRES_PASSWORD: XXX
    volumes:
      - /volume1/docker/adventurelog/db/:/var/lib/postgresql/data/
    networks:
      - adventure-log
    mem_limit: 1024m
    healthcheck:
      test: ["CMD-SHELL", "pg_isready -U adventure -d database"]
      interval: 5s
      timeout: 5s
      retries: 5
      start_period: 10s

volumes:
  postgres_data:
  adventurelog_media:

networks:
  adventure-log:
    external: true

Logs / Error Output

adventurelog     | Running migrations:
adventurelog     |   No migrations to apply.
adventurelog     | Creating superuser...
adventurelog     | 45 objects imported automatically (use -v 2 for details).
adventurelog     | 
adventurelog     | 
adventurelog     | Superuser already exists.
adventurelog     | Running download-countries (first boot may take several minutes; ensure ~2GB RAM is available)...
adventurelog     | Latest data already imported.
adventurelog     |  █████╗ ██████╗ ██╗   ██╗███████╗███╗   ██╗████████╗██╗   ██╗██████╗ ███████╗██╗      ██████╗  ██████╗ 
adventurelog     | ██╔══██╗██╔══██╗██║   ██║██╔════╝████╗  ██║╚══██╔══╝██║   ██║██╔══██╗██╔════╝██║     ██╔═══██╗██╔════╝ 
adventurelog     | ███████║██║  ██║██║   ██║█████╗  ██╔██╗ ██║   ██║   ██║   ██║██████╔╝█████╗  ██║     ██║   ██║██║  ███╗
adventurelog     | ██╔══██║██║  ██║╚██╗ ██╔╝██╔══╝  ██║╚██╗██║   ██║   ██║   ██║██╔══██╗██╔══╝  ██║     ██║   ██║██║   ██║
adventurelog     | ██║  ██║██████╔╝ ╚████╔╝ ███████╗██║ ╚████║   ██║   ╚██████╔╝██║  ██║███████╗███████╗╚██████╔╝╚██████╔╝
adventurelog     | ╚═╝  ╚═╝╚═════╝   ╚═══╝  ╚══════╝╚═╝  ╚═══╝   ╚═╝    ╚═════╝ ╚═╝  ╚═╝╚══════╝╚══════╝ ╚═════╝  ╚═════╝ 
adventurelog     | “Go confidently in the direction of your dreams! Live the life you've imagined.” ― Henry David Thoreau
adventurelog     | 2026-08-21 07:38:07,263 CRIT Supervisor is running as root.  Privileges were not dropped because no user is specified in the config file.  If you intend to run as root, you can set user=root in the config file to avoid this message.
adventurelog     | 2026-08-21 07:38:07,266 INFO supervisord started with pid 1
adventurelog     | 2026-08-21 07:38:08,268 INFO spawned: 'cron' with pid 38
adventurelog     | 2026-08-21 07:38:08,269 INFO spawned: 'frontend' with pid 39
adventurelog     | 2026-08-21 07:38:08,270 INFO spawned: 'gunicorn' with pid 40
adventurelog     | 2026-08-21 07:38:08,271 INFO spawned: 'memcached' with pid 41
adventurelog     | 2026-08-21 07:38:08,273 INFO spawned: 'nginx' with pid 42
adventurelog     | [2026-08-21 07:38:08 +0000] [40] [INFO] Starting gunicorn 23.0.0
adventurelog     | [2026-08-21 07:38:08 +0000] [40] [INFO] Listening at: http://127.0.0.1:8000 (40)
adventurelog     | [2026-08-21 07:38:08 +0000] [40] [INFO] Using worker: sync
adventurelog     | [2026-08-21 07:38:09 +0000] [53] [INFO] Booting worker with pid: 53
adventurelog     | [2026-08-21 07:38:09 +0000] [54] [INFO] Booting worker with pid: 54
adventurelog     | 2026-08-21 07:38:09,325 INFO success: cron entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
adventurelog     | 2026-08-21 07:38:09,325 INFO success: frontend entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
adventurelog     | 2026-08-21 07:38:09,325 INFO success: gunicorn entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
adventurelog     | 2026-08-21 07:38:09,326 INFO success: memcached entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
adventurelog     | 2026-08-21 07:38:09,326 INFO success: nginx entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
adventurelog     | Listening on http://0.0.0.0:3000
adventurelog     | 
adventurelog     | [404] GET /favicon.ico

AdventureLog Version

latest

Reverse Proxy

Synology Reverse Proxy (nginx)

Confirmation

  • I removed or obfuscated all sensitive data from this issue.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    deploymentIssues related to deploying AdventureLog

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions