mirror of https://github.com/apache/nifi.git
NIFI-655:
- Removing proxied user chain as user details are already serialized.
This commit is contained in:
parent
774d626f88
commit
014b2ac4e8
|
@ -365,13 +365,6 @@ public abstract class ApplicationResource {
|
||||||
|
|
||||||
if (httpServletRequest.isSecure()) {
|
if (httpServletRequest.isSecure()) {
|
||||||
|
|
||||||
// add the certificate DN to the proxy chain
|
|
||||||
final NiFiUser user = NiFiUserUtils.getNiFiUser();
|
|
||||||
if (user != null) {
|
|
||||||
// add the proxied user details
|
|
||||||
result.put(PROXIED_ENTITIES_CHAIN_HTTP_HEADER, ProxiedEntitiesUtils.buildProxiedEntitiesChainString(user));
|
|
||||||
}
|
|
||||||
|
|
||||||
// add the user's authorities (if any) to the headers
|
// add the user's authorities (if any) to the headers
|
||||||
final Authentication authentication = SecurityContextHolder.getContext().getAuthentication();
|
final Authentication authentication = SecurityContextHolder.getContext().getAuthentication();
|
||||||
if (authentication != null) {
|
if (authentication != null) {
|
||||||
|
|
Loading…
Reference in New Issue