Module: Kessel::GRPC
- Included in:
- Inventory::ClientBuilder
- Defined in:
- lib/kessel/grpc.rb
Instance Method Summary collapse
Instance Method Details
#oauth2_call_credentials(auth) ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/kessel/grpc.rb', line 8 def oauth2_call_credentials(auth) call_credentials_proc = proc do || token = auth.get_token .merge('authorization' => "Bearer #{token.access_token}") end ::GRPC::Core::CallCredentials.new(call_credentials_proc) end |