Skip to content

Commit b1a8fa5

Browse files
Hiral Singadiafacebook-github-bot
Hiral Singadia
authored andcommitted
Rename tlsClientIdentifier --> clientIdentityHash
Summary: Renaming since we are using CAT identities when present in the request - so it is not necessarily only tls conn identities Reviewed By: stuclar Differential Revision: D71329504 fbshipit-source-id: 1af953d6b96c256c4c7ac189c90a6a463f01634d
1 parent af10b3f commit b1a8fa5

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

mcrouter/ServerOnRequest.h

+5-4
Original file line numberDiff line numberDiff line change
@@ -175,13 +175,14 @@ class ServerOnRequest {
175175
ctxRef.getThriftRequestContext()) {
176176
auto mayBeHashedIdentities =
177177
core_infra_security::thrift_authentication_module::
178-
ClientIdentifierHelper::getTlsClientIdentifier(
178+
ClientIdentifierHelper::getClientIdentityHash(
179179
*ctxRef.getThriftRequestContext());
180180
// if has valid hashed identity string, set it on the request
181-
if (mayBeHashedIdentities.hasValue() &&
182-
std::holds_alternative<std::string>(mayBeHashedIdentities.value())) {
181+
if (mayBeHashedIdentities.has_value() &&
182+
mayBeHashedIdentities->hasValue() &&
183+
std::holds_alternative<std::string>(mayBeHashedIdentities->value())) {
183184
reqRef.setClientIdentifier(
184-
std::get<std::string>(mayBeHashedIdentities.value()));
185+
std::get<std::string>(mayBeHashedIdentities->value()));
185186
}
186187
}
187188
#endif

0 commit comments

Comments
 (0)