15 lines
500 B
Text
15 lines
500 B
Text
auth_request /internal/authelia/authz;
|
|
|
|
auth_request_set $user $upstream_http_remote_user;
|
|
auth_request_set $groups $upstream_http_remote_groups;
|
|
auth_request_set $name $upstream_http_remote_name;
|
|
auth_request_set $email $upstream_http_remote_email;
|
|
|
|
proxy_set_header Remote-User $user;
|
|
proxy_set_header Remote-Groups $groups;
|
|
proxy_set_header Remote-Email $email;
|
|
proxy_set_header Remote-Name $name;
|
|
|
|
auth_request_set $redirection_url $upstream_http_location;
|
|
|
|
error_page 401 =302 $redirection_url;
|