简体   繁体   中英

How to authenticate with firebase rules (RESTful)

I am not sure where I pass my auth uid token when I am making a request to firebase.

I've tried:

[myfirebaseurl]/path/1234.json?auth=[uid that i set].

Along with putting the UID in headers, content, and authorization. I am currently testing on reqbin before I put this into my application.

Basically, is it a url parameter, header, or where should I pass a UID that i set in the firebase rules tab?

Thanks for any help!

It looks like you're trying to authenticate with an ID token . The ID token is not the same thing as the UID, it would be too easy to access someone else's account if all you needed was their UID.

You need to retrieve an ID token and use that where you are currently using the UID.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM