GrpcCredentialsHelper
class GrpcCredentialsHelper
A class that manages credentials for an API object using the Google Auth library
Methods
Accepts an optional credentialsLoader argument, to be used instead of using the ApplicationDefaultCredentials
Creates the callback function to be passed to gRPC for providing the credentials for a call.
Creates a gRPC client stub.
Gets credentials from ADC. This exists to allow overriding in unit tests.
Construct ssl channel credentials. This exists to allow overriding in unit tests.
Details
at line 67
__construct(string[] $scopes, array $optionalArgs = [])
Accepts an optional credentialsLoader argument, to be used instead of using the ApplicationDefaultCredentials
at line 98
createCallCredentialsCallback()
Creates the callback function to be passed to gRPC for providing the credentials for a call.
at line 130
createStub(callable $generatedCreateStub, string $serviceAddress, mixed $port, array $options = [])
Creates a gRPC client stub.
at line 149
protected
getADCCredentials($scopes)
Gets credentials from ADC. This exists to allow overriding in unit tests.
at line 157
protected
createSslChannelCredentials()
Construct ssl channel credentials. This exists to allow overriding in unit tests.