Skip to content
Discussion options

You must be logged in to vote

If you're using a strongly typed gRPC client, you can leverage the fact that it uses an HttpClient internally:

builder.Services.AddOpenIdConnectAccessTokenManagement();

builder.Services.AddGrpcClient<Greeter.GreeterClient>(o =>
{
    o.Address = new Uri("https://localhost:5001");
})
    .AddUserAccessTokenHandler();
// or .AddClientAccessTokenHandler(); when using client credentials

Is this what you were looking for? There is indeed no current alternative for configuring gRPC clients like you suggested.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by joskoanicic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants