nerkarso / directus-extensions

Collection of Directus extensions
https://nerkarso.github.io/directus-extensions/
10 stars 2 forks source link

Which GOOGLE_APPLICATION_CREDENTIALS ? #3

Closed Gunther-443 closed 1 week ago

Gunther-443 commented 1 month ago

Hi,

When you say "GOOGLE_APPLICATION_CREDENTIALS", which one is it? I've tried the one for iOS (GoogleService-Info.plist) and for android (google-services.json) Each time, directus gives me an error: Invalid contents in the credentials file. Can you be more explicit about credentials? thanks

nerkarso commented 1 month ago

It's the Android one (google-services.json) The file contents should be something like this:

{
  "type": "service_account",
  "project_id": "XXX",
  "private_key_id": "XXX",
  "private_key": "-----BEGIN PRIVATE KEY-----",
  "client_email": "firebase-adminsdk-XXX@XXX.iam.gserviceaccount.com",
  "client_id": "XXX",
  "auth_uri": "https://accounts.google.com/o/oauth2/auth",
  "token_uri": "https://oauth2.googleapis.com/token",
  "auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
  "client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/firebase-adminsdk-XXX%40XXX.iam.gserviceaccount.com"
}