Skip to content

Commit

Permalink
Move ClientIdentifierHelper outside of detail namespace for uCache(KC…
Browse files Browse the repository at this point in the history
…B) and Axon

Summary:
Current implementation causes warning in ucache to not call our api since it was in `detail` namespace.
Pulling it out of detail to make is usable by others (ucache for kcb and axon)

Context: https://www.internalfb.com/diff/D63764022?dst_version_fbid=1581474779123809&transaction_fbid=27003760075938780

Reviewed By: edenzik, lenar-f

Differential Revision: D65930007

fbshipit-source-id: bb48088564e7231449ad454eef40f3f98cfe57a5
  • Loading branch information
Hiral Singadia authored and facebook-github-bot committed Nov 14, 2024
1 parent 85facb9 commit 58546f7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions mcrouter/ServerOnRequest.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#include <cassert>
#include <memory>

#include "core_infra_security/thrift_authentication_module/detail/ClientIdentifierHelper.h"
#include "core_infra_security/thrift_authentication_module/ClientIdentifierHelper.h"
#include "mcrouter/CarbonRouterClient.h"
#include "mcrouter/RequestAclChecker.h"
#include "mcrouter/config.h"
Expand Down Expand Up @@ -170,8 +170,9 @@ class ServerOnRequest {
if (FOLLY_UNLIKELY(enableKeyClientBinding_) &&
ctxRef.getThriftRequestContext()) {
auto mayBeHashedIdentities =
core_infra_security::thrift_authentication_module::detail::
getTlsClientIdentifier(*ctxRef.getThriftRequestContext());
core_infra_security::thrift_authentication_module::
ClientIdentifierHelper::getTlsClientIdentifier(
*ctxRef.getThriftRequestContext());
// if has valid hashed identity string, set it on the request
if (mayBeHashedIdentities.hasValue() &&
std::holds_alternative<std::string>(mayBeHashedIdentities.value())) {
Expand Down

0 comments on commit 58546f7

Please sign in to comment.