• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

Firebase Web APP book-> I need receive email and password ‘externally’

Q&A Forum › Category: ESP32 › Firebase Web APP book-> I need receive email and password ‘externally’
0 Vote Up Vote Down
Horacio Alberto Marques asked 4 years ago

Hi, I bought the book Firebase Web App, my questions is ¿how can i receive the email and password externally? because if my user and pass change, I need update all the code, because the USER_EMAIL and USER_PASSWORD is a constant in the code. Thanks and Regards

.
Hola, compré el libro Firebase Web App, mi pregunta es ¿cómo puedo recibir el correo electrónico y la contraseña externamente? porque si mi usuario y mi contraseña cambian, necesito actualizar todo el código, porque USER_EMAIL y USER_PASSWORD es una constante en el código. Gracias y saludos

Question Tags: firebase web book esp32 email password
6 Answers
0 Vote Up Vote Down
Best Answer
Steve Mercer answered 4 years ago

You are basically in a chicken and egg scenario. At some point you will need to hard code your username/password. For instance, if you want your username/password from an external system, you will need to be able to login to that system to get the username/password for Firebase. It is probably better to do it in your Arduino code and Using OTA updates.

0 Vote Up Vote Down
Sara Santos Staff answered 4 years ago

Hi.
I’m not sure that I understood your question.
 
But, if I understood correctly, do you want to be able to insert the user email and password on the ESP32 without hard code?
You can create a web server with input fields where you insert the user email and password.
And only after getting those values, the ESP would connect to Firebase.
 
We have some tutorials with input fields.
For example:

  • https://randomnerdtutorials.com/esp32-esp8266-input-data-html-form/

 
I hope this answers your question.
Regards,
Sara

0 Vote Up Vote Down
Horacio Alberto Marques answered 4 years ago

Thank you for writing me, but I was not clearer in writing it in English.
In the footer page 139 from PDF Firebase_Web_App I view a “bootstrap panel modal input” email and password for can login at firebase.
.
How can I use this data input (email and password) for send to ESP32 and replace USER_EMAIL and USER_PASS constant in our code?

Gracias por escribirme, pero no fuí mas claro en escribirlo en ingles.
En el pie de página de la página 139 de PDF Firebase_Web_App, veo un correo electrónico y una contraseña de “entrada modal del panel de arranque” para poder iniciar sesión en firebase.
.
¿Cómo puedo usar esta entrada de datos (correo electrónico y contraseña) para enviar a ESP32 y reemplazar la constante USER_EMAIL y USER_PASS en nuestro código?

 

0 Vote Up Vote Down
Horacio Alberto Marques answered 4 years ago

Thanks Steve for writing to me, but I’m going to write my question the other way

0 Vote Up Vote Down
Sara Santos Staff answered 4 years ago

Hi Horacio.
 
You can’t.
 
What Steve mentioned is correct.
For the ESP32 to have access to firebase it needs to connect as a user. So, it needs to “know” the authorized user’s email address and password.
If you don’t want to hard code the credentials on the ESP32, you can build a web server, as I suggested previously.
I hope this answers your question.
 
Regards,
Sara

0 Vote Up Vote Down
Horacio Alberto Marques answered 4 years ago

Thanks Sara for your answer and Steve, I need to find out how other developers have found a way to access without OTA or change the source code with a web server or as STA for change configuration
.
I have done everything that is written in your PDF, very good job, of course any modification is my responsibility.

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [eBook Updated] Learn Raspberry Pi Pico/Pico W with MicroPython eBook – Version 1.2 May 26, 2025
  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.