Closed kgoedert closed 6 years ago
here is code added to Transport class in 2015:
private String send(HttpRequestBase http) throws RedmineException {
if (onBehalfOfUser != null) {
http.addHeader("X-Redmine-Switch-User", onBehalfOfUser);
}
return communicator.sendRequest(http);
}
and corresponding code in RedmineManager:
public void setOnBehalfOfUser(String loginName) {
transport.setOnBehalfOfUser(loginName);
}
Hello,
is there a way to add X-Redmine-Switch-User to the post request to impersonate a user?