简体   繁体   中英

Firebase rules, using third party token?

I am using the Firebase database and Okta for authentication.

It is my first time diving into rules but currently, it stores the access token on the browser then redirects to the web app. How can correctly enforce this rule so that anyone with this token can read/write?

Current rules:

{
  "rules": {
    ".read": true,
    ".write": true
  }
}

Firebase security rules can be used with Firebase Authentication only if you are trying to access information of user reading/updating database. One way would be to make requests througha Cloud function, verify Okta token there and then return data if authorized.

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