Matthias Andreas Benkard | b382b10 | 2021-01-02 15:32:21 +0100 | [diff] [blame] | 1 | if printf "%s\n" "${ALLOW_ADMIN_EMAIL_LOGIN}" | grep -E '^([yY][eE][sS]|[yY])+$' >/dev/null; then |
| 2 | echo 'auth_request /sogo-auth-verify; |
| 3 | auth_request_set $user $upstream_http_x_user; |
| 4 | auth_request_set $auth $upstream_http_x_auth; |
| 5 | auth_request_set $auth_type $upstream_http_x_auth_type; |
| 6 | proxy_set_header x-webobjects-remote-user "$user"; |
| 7 | proxy_set_header Authorization "$auth"; |
| 8 | proxy_set_header x-webobjects-auth-type "$auth_type"; |
| 9 | ' |
| 10 | fi |