#Traefik auth issue

1 messages · Page 1 of 1 (latest)

jagged dagger
#

Bot and dashboard are running on docker and are connected, but cannot auth with discord. Stuck in the loop of authenticating and redirecting back to start. I have some other stuff hosted behind traefik so I'm using it. Any help would be nice

  routers:
    toDashboard:
      entryPoints:
        - websecure
      rule: "Host(`domain.duckdns.org`)"
      service: dashboard
      middlewares:
        - header@file
      tls:
        certResolver: "myresolver"
        options: dashboard

  services:
    dashboard:
      loadBalancer:
        servers:
         - url: "http://192.168.5.182:3456/"

  middlewares:    
    header:
      headers:
        customRequestHeaders:
          X-Forwarded-Proto: "https"
          Host: "{host}"
          X-Real-IP: "{remote}"
          X-Forwarded-For: "{remote}"

    dashboard:
      minVersion: VersionTLS13```


I get the code back from Discord, just think its not passing to the app

`"GET /callback?code=M3wXocKTXXV0wzdVC1i2AqQzySZekw HTTP/2.0" 302 189 "-" "-" 36 "toDashboard@file" "http://192.168.5.182:3456/`
wet radish
#

Umm never used traefik before

#

If you’re experiencing issues with OAuth, it’s likely due to an incorrect client secret id

tired glen
wet radish
tired glen
#

You mean this?

wet radish
tired glen
#

I configured it copy pasted the client id and secret from bot config.json, i can see in the bot and dashboard logs that they are connected, the bot by itself works, and on the dashboard arrived to this point
I have the same problem, precisely the same, I can see from the reverse proxy logs, the call to /callback is being forwarded to the dashboard but it returns 302 and loops over and over again
Is there some setting i need to change on the developer panel? ( I have enbled Public Client Option in the Oauth2 section and all toggles in Bot section)
https://vocard.fedotcompot.net/callback

Discord

Discord is great for playing games and chilling with friends, or even building a worldwide community. Customize your own space to talk, play, and hang out.

wet radish
#

can you show your settings and logs

tired glen
#
  1. dashboard setting
  2. bot ipc settings
#

Dashboard logs

#

Bot logs

wet radish
#

looks good the bot was connected

#

have you add the redirect_url in your discord develop portal?

tired glen
#

Yep

wet radish
#

🤔 weird

#

try to reset the client secret

#

update the settings and reset the dashboard

tired glen
#

Finally!!!

#

Thank you so mush

wet radish
tired glen
#

aga👍

#

@jagged dagger after recreating a new token it's working for me now, I actually have no middleware setup, i can share you my traefik config and container labels, hope it helps. I have no tls settings because of default certs having all wildcards i will ever need on ths server

jagged dagger
#

Yeah, it was only the secret token. Now everything works without the middleware

#

It even works with mtls

#

Thank you

wet radish