Update grpc-auth-support.md

Fix method name.
pull/3109/head
Abhishek Kumar 10 years ago
parent 82361e4676
commit b99d481904
  1. 2
      grpc-auth-support.md

@ -54,7 +54,7 @@ passed to the factory method.
gRPC applications can use a simple API to create a credential that works in various deployment scenarios. gRPC applications can use a simple API to create a credential that works in various deployment scenarios.
``` ```
std::unique_ptr<Credentials> creds = CredentialsFactory::DefaultGoogleCredentials(); std::unique_ptr<Credentials> creds = GoogleDefaultGoogleDefaultCredentials();
// Create a channel, stub and make RPC calls (same as in the previous example) // Create a channel, stub and make RPC calls (same as in the previous example)
std::shared_ptr<ChannelInterface> channel = CreateChannel(server_name, creds, channel_args); std::shared_ptr<ChannelInterface> channel = CreateChannel(server_name, creds, channel_args);
std::unique_ptr<Greeter::Stub> stub(Greeter::NewStub(channel)); std::unique_ptr<Greeter::Stub> stub(Greeter::NewStub(channel));

Loading…
Cancel
Save