Skip to content

Commit

Permalink
ugly fix of per_rpc_creds test
Browse files Browse the repository at this point in the history
  • Loading branch information
jtattermusch committed Sep 4, 2015
1 parent b26972f commit ee0ef4d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/csharp/Grpc.IntegrationTesting/InteropClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,9 @@ public static async Task RunPerRpcCredsAsync(TestService.TestServiceClient clien
Console.WriteLine("running per_rpc_creds");

ITokenAccess credential = await GoogleCredential.GetApplicationDefaultAsync();
string accessToken = await credential.GetAccessTokenForRequestAsync();
// TODO: currently there's no way how to obtain AuthURI for JWT per-rpc creds.
string authUri = "https://grpc-test.sandbox.google.com/grpc.testing.TestService";
string accessToken = await credential.GetAccessTokenForRequestAsync(authUri);
var headerInterceptor = AuthInterceptors.FromAccessToken(accessToken);

var request = new SimpleRequest
Expand Down

0 comments on commit ee0ef4d

Please sign in to comment.