Forward Auth with own Auth Server

Hello I have now decided to use Traefik because it brings many advantages Now I would like to use the middleware "Forward Auth". The problem is that I want to program an auth server myself that allows a Discord login, the problem is that Traefik only reacts on a status of 2xx but a redirect is a 3xx , can I solve this somehow differently?

Hi @NewtTheWolf

The ForwardAuth middleware delegates authentication to an external service. If the service answers with a 2XX code, access is granted, and the original request is performed. Otherwise, the response from the authentication server is returned.

So if the auth server returns a 3xx if returned from the Authforward server then that response will be returned to the requester.