Merge pull request #225 from electroma/nginx/extauth_headers

Support for http header passing from external authentication service
This commit is contained in:
Manuel Alejandro de Brito Fontes 2017-04-01 20:40:29 -03:00 committed by GitHub
commit 02cd3ce885
15 changed files with 535 additions and 0 deletions

View file

@ -293,6 +293,9 @@ http {
{{ if not (empty $authPath) }}
# this location requires authentication
auth_request {{ $authPath }};
{{- range $idx, $line := buildAuthResponseHeaders $location }}
{{ $line }}
{{- end }}
{{ end }}
{{ if not (empty $location.ExternalAuth.SigninURL) }}