Skip to content

SDSTOR-24888: Add inject_auth_metadata helper to GrpcSyncClient (v8.x) - #336

Merged
d2chau merged 1 commit into
eBay:stable/v8.xfrom
d2chau:fix/sdstor-24888-v8
Sep 9, 2026
Merged

d2chau merged 1 commit into
eBay:stable/v8.xfrom
d2chau:fix/sdstor-24888-v8

Conversation

@d2chau

@d2chau d2chau commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

GrpcSyncClient held m_trf_client (inherited from GrpcBaseClient) but provided no mechanism to inject it into a ClientContext. Subclasses had to access the protected member directly, duplicating the null-check and AddMetadata call.

Add a protected inject_auth_metadata() that mirrors the auth injection already present in GrpcAsyncClient::AsyncStub::prepare_and_send_unary and GenericAsyncStub::prepare_and_send_unary_generic.

GrpcSyncClient held m_trf_client (inherited from GrpcBaseClient) but
provided no mechanism to inject it into a ClientContext. Subclasses had
to access the protected member directly, duplicating the null-check and
AddMetadata call.

Add a protected inject_auth_metadata() that mirrors the auth injection
already present in GrpcAsyncClient::AsyncStub::prepare_and_send_unary
and GenericAsyncStub::prepare_and_send_unary_generic.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

@raakella1 raakella1 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LG

@d2chau
d2chau merged commit 9ec910e into eBay:stable/v8.x Sep 9, 2026
6 checks passed
@d2chau
d2chau deleted the fix/sdstor-24888-v8 branch September 9, 2026 13:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants