Make sure set-cookie is retained from external auth endpoint (#5067)

This commit is contained in:
Manuel Alejandro de Brito Fontes 2020-02-14 01:41:11 -03:00 committed by GitHub
parent e179a24f97
commit 71e35c9100
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 48 additions and 0 deletions

View file

@ -952,6 +952,8 @@ stream {
location {{ buildAuthSignURLLocation $location.Path $externalAuth.SigninURL }} {
internal;
add_header Set-Cookie $auth_cookie;
return 302 {{ buildAuthSignURL $externalAuth.SigninURL }};
}
{{ end }}