Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

210
Visualizações
Storing 3dparty auth access key on cloud functions (firebase)

I am planing a project with cloud function my functions should connect a 3d party api using authentication header ...etc

this 3dapi requests to refresh the access every hour so i think about creating a cloud task in separate project that will keep the token. and in my functions i will be able to get it somehow

my question is how can i do that

so i would like a 2 projects : 1 for keeping access tokens on firestore or on somewhere else 2- the functions app will be retrieve them when it want in order to make it secured

so where do I keep it and how can i retrieve those token ? firestore ? some other service on cloud? maybe in the same firestore that the funcstions uses?

update: the way i think is

1 - create a bucket

2- create 2 projects. - 1 for token generations , 2 fo the functions iteself

3- token generation will keep the token in bucket storage evrey 10 mintues

4- the function service will get the token from bucket evrey time

thanks

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

As mentioned in the answer 3rd party APIs can be stored in the firebase by following 3 ways:

  • If you truly want to use firebase functions to access your keys, then yes this can be done through firebase's On call Function.

This sends a request to a function with that user's current auth state. You could then verify that the user is real and return the keys.More information on the protocol for sending this requests You can learn more about cloud firestore REST API as:

  • Accessing Cloud Firestore from a resource-constrained environment, such as an internet of things (IoT) device, where running a complete client library is impossible.
  • Automating database administration or retrieving detailed database metadata. Here a documentation on how to use and manage API for the firebase projects.
about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda