Added: support for http header passing from external authentication service response

This commit is contained in:
rsafronov 2017-02-03 19:43:15 -05:00
parent e86d32dbd1
commit 302fa5f4bb
6 changed files with 122 additions and 7 deletions

View file

@ -258,6 +258,9 @@ http {
{{ if not (empty $authPath) }}
# this location requires authentication
auth_request {{ $authPath }};
{{- range $idx, $line := buildAuthResponseHeaders $location }}
{{ $line }}
{{- end }}
{{ end }}
{{ if (and (not (empty $server.SSLCertificate)) $location.Redirect.SSLRedirect) }}