kabir
September 7, 2021, 6:35am
1
i am creating a nes app in which i am only i will be able to change the news.
I am using firebase realtime database so that anyone can see the news my current firebase database rules loo like this:
this means i am only allowing an authenticated owner that is myself to write the data and anyone to read the data.
Then i also enabled email authentication method in firebase and created a user with my email and a new password
then i am using firebaseAuth extension in mit app inventor to sign myself in the firebase whenever i want to change the news
and this is how my current authentication blocks look like.
It is of course opening the vertical arrangement in which i can edit the news but when i am making changes to news and saving changes database is not updating and the app is crashing
I request you to help if you know the solution to my problem!!
TIMAI2
September 7, 2021, 9:15am
2
You might have a good read here:
[fb]
This is one of those, could it be done.... did I need to use the built-in firebase component, or the extensions available, in order to use Firebase database and storage, and operate secure rules. Well after some research and testing, it turns out that it could be done.
Find out how:
Firebase with a Web Component
.
.
.
My thanks @ChrisWard for proof reading and suggestions
[EDIT - Now updated to include the new PATCH feature of the web component]
and here
[firebaselogo]
This one has been tinkling about in my head for a few months, finally got around to committing it to "paper". In essence, this guide demonstrates how to use one firebase authenticated user to authenticate your app with Firebase with secure rules, and to then allow the sign up and sign in of users, who can have a range of read / write permissions, depending on how you setup your app. AIA file now provided.
Subvert Firebase Authentication
For Security Rules see here:
https://firebase.google.com/docs/database/security