Saving Data on Android


Tes/ng the security rules



Download 19,28 Mb.
Pdf ko'rish
bet283/292
Sana24.01.2022
Hajmi19,28 Mb.
#407089
1   ...   279   280   281   282   283   284   285   286   ...   292
Bog'liq
Bailey J., Dominguez A., Djermanovic D. - Saving Data on Android (1st Edition) - 2019

Tes/ng the security rules
You have already seen a 
Simulator
 window in the Firebase console. This is a nice 
feature that Firestore provides that you can use to test your rules.
Click on the 
Data
 tab, open 
posts
 collection and copy the ID of one post. Go back to 
the 
Rules
 tab and click on the 
Simulator
 to open simulator window.
1. Under the 
Simulation type
 field leave it set to 
get
.
2. Under the 
Location
 field enter the path to the specific post. In my case the path 
looks like this:
posts/0gbGvf23YT2xhRpcMxqt
The 
0gbGvf23YT2xhRpcMxqt
 is the ID of the post. Replace that value with the ID you
Saving Data on Android
Chapter 19: Securing Data in Cloud Firestore
raywenderlich.com
277


copied earlier.
Leave the 
Authenticated
 switch in the inactive state.
Now, click the 
Run
 button.  You should see an error message:
Your request didn't succeed because you simulated unauthenticated request.
Now change the 
Authenticated
 switch to active state, leaving the authentication 
fields that appear with their default values, and click 
Run
 again:
Your request is now successful.

Download 19,28 Mb.

Do'stlaringiz bilan baham:
1   ...   279   280   281   282   283   284   285   286   ...   292




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish