alopresto commented on a change in pull request #3482: NIFI-6280 - Broke out 
the matching for /access/knox/** and /access/oi…
URL: https://github.com/apache/nifi/pull/3482#discussion_r286113307
 
 

 ##########
 File path: 
nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-security/src/main/java/org/apache/nifi/web/security/jwt/JwtAuthenticationFilter.java
 ##########
 @@ -43,15 +46,27 @@ public Authentication attemptAuthentication(final 
HttpServletRequest request) {
         // TODO: Refactor request header extraction logic to shared utility as 
it is duplicated in AccessResource
 
         // get the principal out of the user token
-        final String authorization = request.getHeader(AUTHORIZATION);
+        final String authentication = request.getHeader(AUTHORIZATION);
 
 Review comment:
   I agree the HTTP header name is misleading, but since that header is called 
"Authorization", I think we should be consistent. You could name it 
`authorizationHeaderContainingAuthenticationCredentials` to be explicit. 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to