Auth Forward Middleware

The authForward middleware forwards certain headers to and from an external authentication service. Requests are forwarded if and only if the authentication service responds with a 2xx status code.

Example configuration:

services:
  secureService:
    host: private.example.com
    redirect: "http://172.1.2.3:1234"
    middlewares:
      authForward:
        address: "https://auth.example.com"
        requestHeaders: ["Some-Header"]
        responseHeaders: ["Remote-User", "Remote-Email"]
        xForwarded: true

Properties:

See the Authelia integration guide to see how to use authForward with Authelia.