You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by kevdoran <gi...@git.apache.org> on 2018/01/30 17:03:14 UTC

[GitHub] nifi-registry issue #96: NIFIREG-131 Surface auth failure details

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.


---