strapi-provider-upload-firebase icon indicating copy to clipboard operation
strapi-provider-upload-firebase copied to clipboard

Documentation

Open MEANcisco opened this issue 5 years ago • 2 comments

issue

Hello! sorry but this package have a lack of documentation about the credentials, can you please explain which firebaseconfig JSON does it need? actually the credentials crash and have multiple errors.

maybe it works for you, but can you give the format of the json or the credentials needed to make it work please? if you teach me maybe i can redact a kind of Documentation to make it more understandable.

Thanks for your work brother.

MEANcisco avatar Jan 20 '20 21:01 MEANcisco

Hi, sorry for the lack of documentation but I ended up using the default file uploader with starpi. But this provider also worked when doing the following

Go to your firebase account

  • Project settings
  • Service account
  • Click generate new private key
  • Copy the json content from the generated file into strapis file uploader settings, example below:
{
  "type": "service_account",
  "project_id": "your id",
  "private_key_id": "your private key",
  "private_key": "-----BEGIN PRIVATE KEY----- your key \n-----END PRIVATE KEY-----\n",
  "client_email": "your client.gserviceaccount.com",
  "client_id": "your id",
  "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"
}

Hope it helps :) Bent

bentrynning avatar Jan 20 '20 22:01 bentrynning

It does ! 🚀

TakCastel avatar Mar 27 '20 19:03 TakCastel