Traefik "authForward" middleware with Auth0 as external auth/autho server

I am trying to use Traefik middleware of type "authForward" and connect it to auth0 application to signin and then forward to the url.

this is my yaml config for the middleware:

apiVersion: traefik.containo.us/v1alpha1
kind: Middleware
metadata:
  name: auth0-auth
  namespace: secc
spec:
  forwardAuth:
    address: https://auth0-traefik-lem.us.auth0.com/authorize?response_type=code&client_id=pcykgz0s4ujrWwekG4vZK4ItFlBb5ayT&redirect_uri=https://dashboard.traefik.leminnov.cloud/dashboard
    authResponseHeaders:
      - X-Auth-User
      - X-Secret

I am getting 302 response and it's continuously redirecting until i reach the limit.

Does any one tried to link traefik with auth0 or know what's the problem ?

I recommend to tag your post with kubernetes, the configuration is sometimes different to the mostly used Docker setups here.

1 Like

Hello @firasfendri have you manged to use authForward middleare with Auth0 successfully? I'm solving the same issue. Thanks

Did you check the traefik-forward-auth0 doc?