You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
WARNING: Your application has authenticated using end user credentials from Google Cloud SDK. We recommend that most server applications use service accounts instead. If your application continues to use end user credentials from Cloud SDK, you might receive a "quota exceeded" or "API not enabled" error. For more information about service accounts, see https://cloud.google.com/docs/authentication/.
Our application is a desktop application that uses the users default credentials to access files on the cloud and this warning is confusing to users. Is there a way to suppress it? I thought I'd found one but I accidentally asked in the php version of the auth library and not the java one.
Would it be possible to port the patch that they implemented to suppress the warning when the environment variable SUPPRESS_GCLOUD_CREDS_WARNING is set to true?
There is currently not a way to suppress the warning. PHP has a unique situation where triggered warnings can make tests fail so we provided a mechanism to suppress the warning. We really advise using service accounts if it's a production application.
It's an application that users tend to run on their own laptops on their own files. Getting them to set up a service account is a difficult undertaking. We use service accounts in our large scale production setting with the same tools, but the personal account use is an important one.
lbergelson
added a commit
to lbergelson/google-auth-library-java
that referenced
this issue
Nov 9, 2018
Defining a new environment variable SUPPRESS_GCLOUD_CREDS_WARNING.
Setting this to true suppresses the end user credentials warning.
Fixesgoogleapis#193
* Option to suppress end user credentials warning.
Defining a new environment variable SUPPRESS_GCLOUD_CREDS_WARNING.
Setting this to true suppresses the end user credentials warning.
Fixes#193
* reordering checks to respond to comment
I'm wondering how to suppress the warning:
Our application is a desktop application that uses the users default credentials to access files on the cloud and this warning is confusing to users. Is there a way to suppress it? I thought I'd found one but I accidentally asked in the php version of the auth library and not the java one.
Would it be possible to port the patch that they implemented to suppress the warning when the environment variable
SUPPRESS_GCLOUD_CREDS_WARNING
is set totrue
?googleapis/google-auth-library-php#199 (comment)
The text was updated successfully, but these errors were encountered: