Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Add social application form has empty Provider list #474

Open
mpfl opened this issue Jan 29, 2025 · 0 comments
Open

[BUG] Add social application form has empty Provider list #474

mpfl opened this issue Jan 29, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@mpfl
Copy link

mpfl commented Jan 29, 2025

Describe the bug
When trying to add a new OIDC provider on a fresh installation of AdventureLog 0.8.0, the Provider list is empty.

To Reproduce
Steps to reproduce the behavior:

  1. Get docker-compose-traefik.yaml
  2. Customise for local network conditions
  3. docker compose up -d
  4. Navigate to https://adventurelog.redacted
  5. Log in as new admin user
  6. Navigate to https://adventurelog.redacted/admin
  7. Under Social Accounts, click Add next to Social applications

Expected behavior
The Provider list should have at least GitHub and OpenID Connect as shown in the documentation.

Screenshots

Image

Docker Compose

services:
  db:
    image: postgis/postgis:15-3.3
    restart: unless-stopped
    networks:
      - default
    environment:
      POSTGRES_DB: database
      POSTGRES_USER: adventure
      POSTGRES_PASSWORD: redacted # Replace with the actual password
    volumes:
      - /home/adventurelog/data:/var/lib/postgresql/data/

  web:
    image: ghcr.io/seanmorley15/adventurelog-frontend:v0.8.0
    restart: unless-stopped
    networks:
      - default
      - web
    environment:
      PUBLIC_SERVER_URL: "http://server:8000"
      BODY_SIZE_LIMIT: Infinity
    labels:
      - "traefik.enable=true"
      - "traefik.http.routers.adventurelogweb.entrypoints=websecure"
      - "traefik.http.routers.adventurelogweb.rule=Host(`adventurelog.redacted `) && !(PathPrefix(`/media`) || PathPrefix(`/admin`) || PathPrefix(`/static`) || PathPrefix(`/accounts`))" # Replace with your domain
      - "traefik.http.routers.adventurelogweb.middlewares=security@docker"
    depends_on:
      - server

  server:
    image: ghcr.io/seanmorley15/adventurelog-backend:v0.8.0
    restart: unless-stopped
    networks:
      - default
      - web
    environment:
      PGHOST: "db"
      PGDATABASE: "database"
      PGUSER: "adventure"
      PGPASSWORD: redacted  # Replace with the actual password
      SECRET_KEY: redacted  # Replace with the actual secret key
      DJANGO_ADMIN_USERNAME: "redacted"
      DJANGO_ADMIN_PASSWORD: redacted  # Replace with the actual admin password
      DJANGO_ADMIN_EMAIL: "redacted" # Replace with your email
      PUBLIC_URL: "https://adventurelog.redacted " # Replace with your domain
      CSRF_TRUSTED_ORIGINS: "https://adventurelog.redacted " # Replace with your domain
      DEBUG: "true"
      FRONTEND_URL: "https://adventurelog.redacted " # Replace with your domain
      DISABLE_REGISTRATION: True
    # OPTIONAL: Set the message to display when registration is disabled
      DISABLE_REGISTRATION_MESSAGE: 'Registration is disabled for this instance of AdventureLog.'
      EMAIL_BACKEND: 'email'
      EMAIL_HOST: redacted 
      EMAIL_USE_TLS: False
      EMAIL_PORT: 587
      EMAIL_USE_SSL: True
      EMAIL_HOST_USER: server@redacted 
      EMAIL_HOST_PASSWORD: redacted 
      DEFAULT_FROM_EMAIL: adventurelog@redacted 
    volumes:
      - /home/adventurelog/media:/code/media
    labels:
      - "traefik.enable=true"
      - "traefik.http.routers.adventurelogserver.entrypoints=websecure"
      - "traefik.http.routers.adventurelogserver.rule=Host(`adventurelog.redacted`) && (PathPrefix(`/media`) || PathPrefix(`/admin`) || PathPrefix(`/static`) || PathPrefix(`/accounts`))" # Replace with your domain
      - "traefik.http.routers.adventurelogserver.middlewares=security@docker"
    depends_on:
      - db

networks:
  web:
    external: true

Additional context
Removing the security@docker middleware has no effect.

@mpfl mpfl added the bug Something isn't working label Jan 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: No status
Development

No branches or pull requests

1 participant