Byron / google-apis-rs

A binding and CLI generator for all Google APIs
http://byron.github.io/google-apis-rs
Other
1.01k stars 131 forks source link

How to obtain values used in 'ApplicationSecret'? #425

Closed Jasperav closed 1 year ago

Jasperav commented 1 year ago

I want to use the fcm crate and to make it work, the documentation mentions the following:

Get an ApplicationSecret instance by some means

How? I need some guidance here. I downloaded a .json file from firebase which I included below. This however does not contain a client_secret (and no redirect_uris). How would I create an ApplicationSecret?

{
  "type": "service_account",
  "project_id": "xx-3a91b",
  "private_key_id": "xx",
  "private_key": "-----BEGIN PRIVATE KEY-----\nx=\n-----END PRIVATE KEY-----\n",
  "client_email": "firebase-adminsdk-rpb2n@x-3a91b.iam.gserviceaccount.com",
  "client_id": "x",
  "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-rpb2n%40xxerviceaccount.com"
}