|
|
@ -136,9 +136,9 @@ class TestAuthMetadataProcessor : public AuthMetadataProcessor { |
|
|
|
if (auth_md_value.ends_with(kGoodGuy)) { |
|
|
|
if (auth_md_value.ends_with(kGoodGuy)) { |
|
|
|
context->AddProperty(kIdentityPropName, kGoodGuy); |
|
|
|
context->AddProperty(kIdentityPropName, kGoodGuy); |
|
|
|
context->SetPeerIdentityPropertyName(kIdentityPropName); |
|
|
|
context->SetPeerIdentityPropertyName(kIdentityPropName); |
|
|
|
consumed_auth_metadata->insert( |
|
|
|
consumed_auth_metadata->insert(std::make_pair( |
|
|
|
std::make_pair(string(auth_md->first.data(), auth_md->first.length()), |
|
|
|
string(auth_md->first.data(), auth_md->first.length()), |
|
|
|
auth_md->second)); |
|
|
|
string(auth_md->second.data(), auth_md->second.length()))); |
|
|
|
return Status::OK; |
|
|
|
return Status::OK; |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
return Status(StatusCode::UNAUTHENTICATED, |
|
|
|
return Status(StatusCode::UNAUTHENTICATED, |
|
|
|