Skip to content
Snippets Groups Projects
Commit cf72a3ad authored by Jan Tattermusch's avatar Jan Tattermusch
Browse files

use JWT credentials for per_rpc_creds

parent 9d8a6521
No related branches found
No related tags found
No related merge requests found
...@@ -410,7 +410,7 @@ namespace Grpc.IntegrationTesting ...@@ -410,7 +410,7 @@ namespace Grpc.IntegrationTesting
public static async Task RunPerRpcCredsAsync(TestService.TestServiceClient client, string oauthScope) public static async Task RunPerRpcCredsAsync(TestService.TestServiceClient client, string oauthScope)
{ {
Console.WriteLine("running per_rpc_creds"); Console.WriteLine("running per_rpc_creds");
ITokenAccess googleCredential = (await GoogleCredential.GetApplicationDefaultAsync()).CreateScoped(new[] { oauthScope }); ITokenAccess googleCredential = await GoogleCredential.GetApplicationDefaultAsync();
var credentials = GrpcCredentials.Create(googleCredential); var credentials = GrpcCredentials.Create(googleCredential);
var request = new SimpleRequest var request = new SimpleRequest
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment