change zammad sso header

This commit is contained in:
2023-08-17 22:30:52 +02:00
parent 12274240b6
commit 4a716a8fd2

View File

@@ -84,10 +84,10 @@
auth_request_set $groups $upstream_http_remote_groups; auth_request_set $groups $upstream_http_remote_groups;
auth_request_set $name $upstream_http_remote_name; auth_request_set $name $upstream_http_remote_name;
auth_request_set $email $upstream_http_remote_email; auth_request_set $email $upstream_http_remote_email;
proxy_set_header Remote-User $user; proxy_set_header X-Forwarded-User $user;
proxy_set_header Remote-Groups $groups; proxy_set_header X-Forwarded-Groups $groups;
proxy_set_header Remote-Name $name; proxy_set_header X-Forwarded-Name $name;
proxy_set_header Remote-Email $email; proxy_set_header X-Forwarded-Email $email;
# If Authelia returns 401, then nginx redirects the user to the login portal. # If Authelia returns 401, then nginx redirects the user to the login portal.
# If it returns 200, then the request pass through to the backend. # If it returns 200, then the request pass through to the backend.
# For other type of errors, nginx will handle them as usual. # For other type of errors, nginx will handle them as usual.