HomarrH
Homarr2y ago
18 replies
Nirmata

Random fail after trying out oidc

I tried to set up osid with authentik but when I configured it i got the error
Error: connect ECONNREFUSED 172.23.0.14:45331
homarr        |     at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1571:16) {
homarr        |   errno: -111,
homarr        |   code: 'ECONNREFUSED',
homarr        |   syscall: 'connect',
homarr        |   address: '172.23.0.14',
homarr        |   port: 45331
OS: Ubuntu server Config:
homarr:
    container_name: homarr
    image: ghcr.io/ajnart/homarr:latest
    restart: unless-stopped
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock # Optional, only if you want docker integration
      - ./homarr/configs:/app/data/configs
      - ./homarr/icons:/app/public/icons
      - ./homarr/data:/data
    networks:
      - services
    environment:
      - AUTH_PROVIDER="oidc"
      - AUTH_OIDC_URI="https://REDACTED/application/o/homarr/"
      - AUTH_OIDC_CLIENT_SECRET="REDACTED"
      - AUTH_OIDC_CLIENT_ID="REDACTED"
      - AUTH_OIDC_CLIENT_NAME="Authentik"
      - AUTH_OIDC_AUTO_LOGIN="true"
      - AUTH_OIDC_ADMIN_GROUP="authentik Admins"
Version: 0.15.3
Solution
https://github.com/ajnart/homarr/issues/1909
Another user had similar problems as you on reddit, this link helped them figure things out
GitHub
Environment Docker Version 0.15.0 Describe the problem Testing out the OIDC and have all setup, but it appears Homarr may need an additional environment variable set where we can define how Homarr ...
OIDC - Homarr is sending http://localhost:7575 as the origin/redire...
Was this page helpful?