firebase

Swift - Firebase Auth with Microsoft Graph (Redirect URL Problem)

这一生的挚爱 提交于 2021-02-10 20:34:58
问题 I'm having a problem integrating Firebase with Microsoft Auth in my iOS App. The login page has been launched and I can sign in by Office365 account but login auth can not be finished because of the below Error : "AADSTS50011: The reply url specified in the request does not match the reply urls configured for the application:[app-id]" I did check the setting in Firebase and below are the settings I add in the app of Azure Active Directory : Web redirect URL : "*.firebaseapp.com/__/auth

Can I limit number of reads/writes from user IP per minute/day in firestore?

拥有回忆 提交于 2021-02-10 20:31:53
问题 How can I limit number of reads/writes from one IP in firestore? P.S. I don't have any authentication in my app 回答1: Limiting any sort of access by IP address is not possible with Cloud Firestore. Instead, you should consider actually using some authentication, force requests through a backend you control, and perform per-user auditing from there. 来源: https://stackoverflow.com/questions/58647720/can-i-limit-number-of-reads-writes-from-user-ip-per-minute-day-in-firestore

Can I limit number of reads/writes from user IP per minute/day in firestore?

妖精的绣舞 提交于 2021-02-10 20:29:49
问题 How can I limit number of reads/writes from one IP in firestore? P.S. I don't have any authentication in my app 回答1: Limiting any sort of access by IP address is not possible with Cloud Firestore. Instead, you should consider actually using some authentication, force requests through a backend you control, and perform per-user auditing from there. 来源: https://stackoverflow.com/questions/58647720/can-i-limit-number-of-reads-writes-from-user-ip-per-minute-day-in-firestore

Firebase cloud function idempotency in docs

梦想的初衷 提交于 2021-02-10 20:24:25
问题 I'm following the docs for Firestore here on Aggregation Queries. I couldn't help but notice that the cloud function solution wouldn't exactly work since it's not idempotent: numRatings is incremented and avgRating recomputed each time. Though this example could be made idempotent if there was also a separate document being stored for each new rating: you'd add a check if the user has already submitted a rating for the restaurant. Is there something I'm missing that makes this example

Firebase cloud function idempotency in docs

亡梦爱人 提交于 2021-02-10 20:19:52
问题 I'm following the docs for Firestore here on Aggregation Queries. I couldn't help but notice that the cloud function solution wouldn't exactly work since it's not idempotent: numRatings is incremented and avgRating recomputed each time. Though this example could be made idempotent if there was also a separate document being stored for each new rating: you'd add a check if the user has already submitted a rating for the restaurant. Is there something I'm missing that makes this example

Customize validation & text in Firebase reset password form?

梦想的初衷 提交于 2021-02-10 20:17:14
问题 I use Firebase Authentication in my flutter app. I use PIN instead of normal password which is I strictly defined 6-digit number. In the case my user forgot their PIN, my only option (or not?) is by calling the sendPasswordResetEmail method. await firebaseAuth.sendPasswordResetEmail(email: userEmail); The problem is they can type any new password in the Firebase reset password input and breaking the rule for 6-digit numeric only. Is there any way to customize the validation, caption text, etc

Firebase on AWS Lambda Import Error

混江龙づ霸主 提交于 2021-02-10 20:14:02
问题 I am trying to connect Firebase with an AWS Lambda. I am using their firebase-admin sdk. I have installed and created the dependancy package as described here. But I am getting this error on Lambda: Unable to import module 'index': Failed to import the Cloud Firestore library for Python. Make sure to install the "google-cloud-firestore" module. I have previously also tried setting up a similar function using node.js but I received an error message because GRPC was not configured. I think that

Image not saving with name in Firebase

老子叫甜甜 提交于 2021-02-10 20:14:00
问题 var dbs=firebase.database(); var stg=firebase.storage(); var inp=document.getElementById("filess"); inp.onchange=lasted; function lasted() { var fname=this.files[0]; var btns=stg.ref("Gis/"+ fname); btns.put(fname); } <input type="file" name="fileid" id="filess" multiple> While I Upload the image and save it to the Firebase Storage. It is saving as [object Type] . How can I store it using the file name? 回答1: The files property of an input is a FileList where each element is a File object. To

Flutter & Firebase : How to check if my picture is uploaded to Firebase Storage Successfully?

孤者浪人 提交于 2021-02-10 20:09:07
问题 Flutter & Firebase : How to check if my picture is uploaded to Firebase Storage Successfully? I am trying to find a way to see if the picture was upload successful so that I can start and stop my LoadingScreen() . final StorageReference firebaseStorageRef = FirebaseStorage.instance .ref() .child('$path/${userID}_${timeStamp}_${number}_${tag}.jpg'); final StorageUploadTask uploadTask = firebaseStorageRef.putFile(image); I am looking forward to hearing from all of you. Thank you in advance! 回答1

Flutter & Firebase : How to check if my picture is uploaded to Firebase Storage Successfully?

拈花ヽ惹草 提交于 2021-02-10 20:04:27
问题 Flutter & Firebase : How to check if my picture is uploaded to Firebase Storage Successfully? I am trying to find a way to see if the picture was upload successful so that I can start and stop my LoadingScreen() . final StorageReference firebaseStorageRef = FirebaseStorage.instance .ref() .child('$path/${userID}_${timeStamp}_${number}_${tag}.jpg'); final StorageUploadTask uploadTask = firebaseStorageRef.putFile(image); I am looking forward to hearing from all of you. Thank you in advance! 回答1