mneethiraj commented on code in PR #857:
URL: https://github.com/apache/ranger/pull/857#discussion_r2850213526


##########
agents-common/src/main/java/org/apache/ranger/plugin/policyengine/RangerPluginContext.java:
##########
@@ -163,6 +170,19 @@ public RangerAdminClient 
createAdminClient(RangerPluginConfig pluginConfig) {
         return ret;
     }
 
+    public void registerJWTProvider(JwtProvider jwtProvider) {
+        this.jwtProvider = jwtProvider;
+
+        RangerAdminRESTClient restClient = (adminClient instanceof 
RangerAdminRESTClient) ? (RangerAdminRESTClient) adminClient : null;
+        if (restClient != null && jwtProvider != null) {

Review Comment:
   `jwtProvider != null` is not necessary here. In case plugin explicitly sets 
it to null, earlier value in `RangerAdminRESTClient` must be 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