kumaab commented on PR #968:
URL: https://github.com/apache/ranger/pull/968#issuecomment-4527509990

   > @kumaab - in addition to these updates, consider updating 
`RangerHeaderPreAuthFilter.initialize()` as shown below:
   > 
   > ```
   > protected void initialize() {
   >     headerAuthEnabled = 
PropertiesUtil.getBooleanProperty(PROP_HEADER_AUTH_ENABLED, false);
   > 
   >     if (headerAuthEnabled) {
   >         userNameHeaderName = 
PropertiesUtil.getProperty(PROP_USERNAME_HEADER_NAME);
   > 
   >         if (StringUtils.isBlank(userNameHeaderName)) {
   >             LOG.warn("Disabling header-based authentication, as 
configuration {} is not set", PROP_USERNAME_HEADER_NAME);
   > 
   >             headerAuthEnabled = false;
   >         }
   >     }
   > }
   > ```
   
   Sure, makes sense, updated!


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to