Github user kevdoran commented on the issue:
https://github.com/apache/nifi-registry/pull/96
This change results in the following responses when testing a composite
file+ldap authorizer and accessing and endpoint that requires authentication:
---
_No credentials:_
```
HTTP/1.1 401 Unauthorized
...
An Authentication object was not found in the SecurityContext. Contact the
system administrator.
```
_Bad credentials:_
```
HTTP/1.1 401 Unauthorized
...
Unable to validate the access token. Contact the system administrator.
```
_Untrusted Proxy:_
```
HTTP/1.1 403 Forbidden
...
Untrusted proxy [CN=user1, OU=nifi]. Contact the system administrator.
```
---
Logging for the root cause exception has also been added to the
AuthenticationEntryPoint bean.
---