ugly fix of per_rpc_creds test

pull/3263/head
Jan Tattermusch 10 years ago
parent b26972fab4
commit ee0ef4dfde
  1. 4
      src/csharp/Grpc.IntegrationTesting/InteropClient.cs

@ -396,7 +396,9 @@ namespace Grpc.IntegrationTesting
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

Loading…
Cancel
Save