-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathauth-forward.yml
More file actions
21 lines (17 loc) · 862 Bytes
/
auth-forward.yml
File metadata and controls
21 lines (17 loc) · 862 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# The authForward middleware is used to forward certain headers to and from an external authentication service.
# Access is granted if the authentication service responds with a 2xx status code.
services:
secureService:
host: private.example.com
redirect: "http://172.1.2.3:1234"
middlewares:
authForward:
# The address of the authentication server.
address: "https://auth.example.com"
# The headers to forward from the original request to the authentication server.
# If unspecified, all headers will be forwarded.
requestHeaders: ["Some-Header"]
# The headers to forward from the authentication server to the service.
responseHeaders: ["Remote-User", "Remote-Email"]
# Forward X-Forwarded-* headers to the authentication server.
xForwarded: true # Default: false.