GrpcCredentialsHelper
class GrpcCredentialsHelper
A class that manages credentials for an API object using the Google Auth library
Methods
__construct(string[] $scopes, array $optionalArgs = array())
Accepts an optional credentialsLoader argument, to be used instead of using the ApplicationDefaultCredentials
createCallCredentialsCallback()
Creates the callback function to be passed to gRPC for providing the credentials for a call.
createStub(function $generatedCreateStub, string $serviceAddress, mixed $port, array $options = array())
Creates a gRPC client stub.
Details
at line line 67
__construct(string[] $scopes, array $optionalArgs = array())
Accepts an optional credentialsLoader argument, to be used instead of using the ApplicationDefaultCredentials
at line line 98
createCallCredentialsCallback()
Creates the callback function to be passed to gRPC for providing the credentials for a call.
at line line 130
createStub(function $generatedCreateStub, string $serviceAddress, mixed $port, array $options = array())
Creates a gRPC client stub.