google-cloud-php icon indicating copy to clipboard operation
google-cloud-php copied to clipboard

credentials validation is not consistent across libraries.

Open audas opened this issue 4 years ago • 1 comments

This should be made clear to users.

For example in order to use Speech to text users can use the contents of a keyFile as "credentials

new SpeechClient(['credentials' => $credentials]);

HOWEVER this fails with STORAGE and users must use a keyPath

    $storage = new StorageClient([
        'keyFilePath' => 'path_to_.json',
        'projectId' => 'projectID'
    ]);

This is in my view a terrible programmatic anomaly and there should be uniform approach to validation so it should be made very clear - and since there is almost ZERO documentation on authorization which is instead farmed out via links which lead to no where, or simply do not work, it is worth while addressing this failure in the documentation.

audas avatar Dec 06 '21 01:12 audas

@frankyn @bshaffer for vis

danoscarmike avatar Dec 07 '21 00:12 danoscarmike