HomarrH
Homarr12mo ago
dreevy

SSO Login Error

When attempting to login, I get the "Login with Authentik" button but an error. "login?error=configuration" in the URL.
services:
  homarr:
    container_name: homarr
    image: ghcr.io/homarr-labs/homarr:latest
    restart: unless-stopped
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock # Optional, only if you want docker integration
      - ./homarr/appdata:/appdata
    environment:
      - SECRET_ENCRYPTION_KEY=secretencryptionkey # <--- can be generated with `openssl rand -hex 32`
      - AUTH_PROVIDERS=oidc
      - AUTH_OIDC_ISSUER=https://auth.example.dev/application/o/homarr
      - AUTH_OIDC_CLIENT_SECRET=supersecret
      - AUTH_OIDC_CLIENT_ID=clientidsecret
      - AUTH_OIDC_CLIENT_NAME=Authentik
      - AUTH_OIDC_OWNER_GROUP='authentik Administrators'
      - AUTH_OIDC_ADMIN_GROUP='authentik Administrators'
      - AUTH_OIDC_AUTO_LOGIN=false
    ports:
      - 7575:7575
networks:
  authentik_default:
    external: true
  dockge_default:
    external: true
  nginx_default:
    external: true
Solution
Looks like adding a trailing slash to .env fixed it. Docs need to be updated.
Was this page helpful?