googleapis / google-cloud-php

Google Cloud Client Library for PHP
https://cloud.google.com/php/docs/reference
Apache License 2.0
1.08k stars 430 forks source link

Authentication: hashed_account_id is deprecated #7506

Open ntward opened 1 week ago

ntward commented 1 week ago

Hello, I am using the Google\Cloud\RecaptchaEnterprise php API. I have been diligently following the docs, but keep hitting the same roadblock - I am beginning to wonder if this is an issue with the API...

I am using application default credentials with a service account key as described in the docs. I keep receiving the following error: _hashed_account_id is deprecated_

As far as I can tell, there is nothing I can do as a user to resolve this - it is something internal to the library?

I see that others on StackOverflow have had the same issue: recaptcha error hashed_account_id is deprecated

Any advice? I'm completely stuck.

Many thanks

Hectorhammett commented 4 days ago

Hello @ntward! Thanks for the comment.

Do you have a link to the specific docs you are referring to? As well as a code example to help you debug?

It does seem like the field you're trying to use is in fact deprecated. The link you shared to Stack Overflow links to the proto file: https://github.com/googleapis/googleapis/blob/9c2348d2aa60700c15899c93e3b9615ab6ce1fcf/google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto#L698C16-L698C63

It gives the recommendation to use user_info.account_id instead.