mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
[DOCS] Harmonize Remote-User and Remote-Groups headers in nginx example (#963)
Fixes #957. Co-authored-by: Clément Michaud <clement.michaud34@gmail.com>
This commit is contained in:
parent
d301ebe47c
commit
310c5dc09b
|
@ -81,8 +81,8 @@ auth_request_set $target_url $scheme://$http_host$request_uri;
|
||||||
# proxy. In the future, it's gonna be safe to just use OAuth.
|
# proxy. In the future, it's gonna be safe to just use OAuth.
|
||||||
auth_request_set $user $upstream_http_remote_user;
|
auth_request_set $user $upstream_http_remote_user;
|
||||||
auth_request_set $groups $upstream_http_remote_groups;
|
auth_request_set $groups $upstream_http_remote_groups;
|
||||||
proxy_set_header X-Forwarded-User $user;
|
proxy_set_header Remote-User $user;
|
||||||
proxy_set_header X-Forwarded-Groups $groups;
|
proxy_set_header Remote-Groups $groups;
|
||||||
# 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.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user