this is my first question, so let if I did something wrong, I´ll rework it.
This Issue
For accessing a FBRD protected via Security Rules, the user has to be authorized and authenticated.
Authorization: Done via setting up Security Rules -> OK
Authentication: Done via Google OAuth2 access tokens or Firebase ID tokens as per Firebase Authenticate Doku
There are several libraries I found but sadly non of them is applicable for my use-case:
- running on an µC
- support of GSM (no Wifi)
What I achieved
Posting Data via https REST to FBRD with API-KEY and SECRET. This is just an interim workaround which I want to get rid off, since SECRET should not be stored of µC source code and the user µC in this case should only have limited access as per Security Rules.
What I tried without success
Wifi Library: Firebase-ESP-Client
Example: EMail
Info: There was already a discussion on GSM. Outome was, no GSM support
My question
Has somebody solved this issue or could help in doing so?
I´m not a security expert but I think APIs for token generation and exchange are needed. Or with other word how get the token exchange and needed for sign-in-email-password realized on µC?
Thanks in advance
Build Errors due to Wifi connection
Firebase Arduino Client Library for ESP8266 and ESP32/src/wcs/esp32/FB_TCP_Client.h:43:0,
Firebase Arduino Client Library for ESP8266 and ESP32/src/common.h:39,
Firebase Arduino Client Library for ESP8266 and ESP32/src/Utils.h:37,
Firebase Arduino Client Library for ESP8266 and ESP32/src/signer/Signer.h:37,
Firebase Arduino Client Library for ESP8266 and ESP32/src/Firebase.h:45,
Firebase Arduino Client Library for ESP8266 and ESP32/src/Firebase_ESP_Client.h:41,