firebase-authentication

Instant Verification prevents onCodeSent() to ever be called & debugged - Firebase SMS Authentication for Android

风格不统一 提交于 2019-12-13 07:27:56
问题 In Firebase SMS Authentication for Android, I'm trying to debug the stage in which the user has to type in the Verification Code he received via SMS. However, due to the Instant Verification , I cannot recreate this scenario on my phone anymore because the onCodeSent() event is never called again. The onVerificationCompleted() is called instead - which is GOOD for production, but it leaves me no option to debug my SMS Code Verification screen. Unfortunately, at the moment there is no way to

Is there any supported way for a firebase service accounts to write to your cloud storage buckets?

僤鯓⒐⒋嵵緔 提交于 2019-12-13 07:09:09
问题 As a contrived example: User uploads photo Server transforms that photo into thumbnail, medium, high definition and writes the files to the users directory. Similar to this API but for the server module: 回答1: Since Firebase Storage is backed by Google Cloud Storage, we recommend using Google Cloud Storage through gcloud-node for this: // Import gcloud var gcloud = require('gcloud'); // Initialize with a service account var gcs = gcloud.storage({ projectId: 'my-project', keyFilename: '/path/to

Calling Javascript function from Laravel controller and return data

杀马特。学长 韩版系。学妹 提交于 2019-12-13 06:09:57
问题 I want to call a firebase auth function (which is in Javascript) from my controller and I want the returned token back in my controller, but I do not know how to proceed. I know how to post ajax request to controller and get data back, however I don't know how to make a request the other way around. I would be thankful if you can put me and other future users in right direction. 回答1: This is not going to work. You know a webserver is always supposed to be online. That way, you can always make

firebase auth with MIcrosoft Graph (accessToken)

烂漫一生 提交于 2019-12-13 04:18:19
问题 I am super hopeful someone can help me - I'm kind of stuck. I'm happily using firebase auth with Microsoft AD. My AuthProvider is firebase.auth.OAuthProvider('microsoft.com') . When I call firebase.auth().signInWithPopup() with that provider, everything works GREAT. I can pick out the accessToken from the resulting UserCredential and access Microsoft Graph api's no problem (yay!). Firebase persists and renews the authentication and my app gets the expected callback via onAuthStateChanged with

How do i get entire object in Firebase?

梦想的初衷 提交于 2019-12-13 04:14:10
问题 Im creating an app with Firebase database here is my data structure: { "teachers" : { "USYSacnOjDR5EAPwljZMHtggN9I2" : { "name" : { "teacher_name" : "Alison" }, "members": { "sIrfMA3bm0R9uj55nDUFpFyabcL2" : true } } }, "users" : { "sIrfMA3bm0R9uj55nDUFpFyabcL2" : { "position" : { "bpos" : "0" }, "name" : { "email" : "m@m.com", "name" : "John", "surname" : "Clash" } } So now in RecyclerView im trying to display all of the Alison teacher members, as you can see John Clash is set to true .

Firebase Storage Downloads Doesn't Resume on Network Reconnection

风流意气都作罢 提交于 2019-12-13 04:13:36
问题 The Story I am using Firebase Storage to upload and download files. The upload works almost perfectly and if the device looses internet connection for a few minutes, then the upload stops, but it automatically resumes once the connection is back. The Problem I was expecting this exact same behaviour for the downloads as well. But it doesn't work like that. If my device looses internet connection, the downloads fails abruptly and doesn't automatically once the connection is back after a few

How to stop users from signing in without verifying e-mail I.D. first in Firebase? [duplicate]

有些话、适合烂在心里 提交于 2019-12-13 04:12:17
问题 This question already has answers here : How do I lock down Firebase Database to any user from a specific (email) domain? (5 answers) Closed 10 months ago . I have created an app in Android Studio where the user signs up with email and password besides few other fields. This is the code I am using: public class MainActivity extends AppCompatActivity { EditText etName, etService, etDes, etCost, etContact, etPass, etEmail; Button offer; CountryCodePicker ccp; private FirebaseAuth mAuth;

OnverificationCompleted() is called but not receiving any otp

試著忘記壹切 提交于 2019-12-13 04:08:05
问题 I'm using phone number verification on signing in with google or fb. The verification was working good with no issue for past 30 days and I didnt change the code at all. But suudenly, the otp is not sending to some mobile numbers sometimes not sending at all. My logcat has no error to my knowledge. But im facing this issue for last week. I need some help on this issue. public class MainActivity extends FragmentActivity { private GoogleSignInClient mGoogleSignInClient; private String

Custom claims vs accessing refs in security rules?

只谈情不闲聊 提交于 2019-12-13 04:06:11
问题 We're integrating our Firebase app with Twitter auth and use the Twitter screen_name as our main human-readable username everywhere in the db. When it comes to security rules, this is obviously a drawback: We don't know the screen_name as it is not included in auth.token . What we can do, is root.child('users').child($screen_name).child('uid').val() === auth.uid . Only way to get the Twitter screen_name into the auth.token security rule context is via custom claims, right? What's the

Firebase callbacks work during testing but not during runtime

橙三吉。 提交于 2019-12-13 03:58:01
问题 I'm using Firebase in an Android app. The app sets up something like a groupchat and allows users to join. The users get a key and can then connect themselves to the corresponding DatabaseReference. We need a check whether the key is valid. Therefore, when the group is created, the host automatically adds himself to a list of users. Then all new clients can check if there are entries in the list. If the list is empty, the key is invalid. This means that I need to wait for the completion of a