Skip to content

Commit 9dd7ebd

Browse files
committed
Pass REMOTE_USER to the backend
We would like to pass `REMOTE_USER` to the backend and use it for authentication. `REMOTE_USER` is added because it was not included in the target to be passed. It is passed to the backend with the ` X-Forwarded-User` header.
1 parent 1c2eb30 commit 9dd7ebd

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

no.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ function getRequestHeaders($multipart_delimiter=NULL) {
6868
// Handle application/json
6969
array_push($headers, "$key: $value");
7070
}
71+
} elseif ($key === 'REMOTE_USER') {
72+
array_push($headers, "X-Forwarded-User: $value");
7173
}
7274
}
7375
return $headers;

0 commit comments

Comments
 (0)