mirror of https://github.com/grpc/grpc.io.git
Fix typo in Ruby auth example.
The auth guide has a Ruby example that references a non-existent `GRPC::Core::Credentials` class. The class to use instead is `GRPC::Core::ChannelCredentials` as defined here:
bebd20b126/src/ruby/ext/grpc/rb_channel_credentials.c (L237)
This commit is contained in:
parent
60a30f0b73
commit
05f03c1ec2
|
|
@ -245,7 +245,7 @@ stub = Helloworld::Greeter::Stub.new('localhost:50051', :this_channel_is_insecur
|
||||||
##### With server authentication SSL/TLS
|
##### With server authentication SSL/TLS
|
||||||
|
|
||||||
```ruby
|
```ruby
|
||||||
creds = GRPC::Core::Credentials.new(load_certs) # load_certs typically loads a CA roots file
|
creds = GRPC::Core::ChannelCredentials.new(load_certs) # load_certs typically loads a CA roots file
|
||||||
stub = Helloworld::Greeter::Stub.new('myservice.example.com', creds)
|
stub = Helloworld::Greeter::Stub.new('myservice.example.com', creds)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue