alopresto commented on a change in pull request #4254:
URL: https://github.com/apache/nifi/pull/4254#discussion_r424764922
##########
File path:
nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-security/src/main/java/org/apache/nifi/web/security/otp/OtpService.java
##########
@@ -45,8 +45,12 @@
// protected for testing purposes
protected static final int MAX_CACHE_SOFT_LIMIT = 100;
- private final Cache<CacheKey, String> downloadTokenCache;
- private final Cache<CacheKey, String> uiExtensionCache;
+ private final Cache<CacheKey, String> downloadTokensToUsers;
+ private final Cache<CacheKey, String> uiExtensionTokensToUsers;
+
+ // keep a reverse cache to allow look-ups in both directions
+ private final Cache<String, CacheKey> usersToDownloadTokens;
Review comment:
Will do.
----------------------------------------------------------------
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]