firebase-authentication

Can't get data from firebase. Authorization denied

牧云@^-^@ 提交于 2019-12-12 05:53:44
问题 I'm still starting out with firebase and i'm using angularfire to connect. I was able to do the authentication successfully using google as a provider and I logged in using my account and got back my user details including uid & image, however, when I attempt to retrieve any data I get: permission_denied at /series: Client doesn't have permission to access the desired data. I also tried the simulator and got the same issue. Here's my database: My rules: The data I entered in the simulator. I

Google sign in using firebase working on emulator but not on real device?

删除回忆录丶 提交于 2019-12-12 05:49:43
问题 Sign in works perfectly in emulator but it is always failing on my real android phones. task.isSuccessful() always returns a false result in my real device but no problem when I am using the emulator. package com.inc.mountzoft.goldencompass; import android.content.Intent; import android.support.annotation.NonNull; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.util.Log; import android.view.View; import android.widget.Toast; import com.google.android

Android Firebase retrieve data from all nodes (nested) in Fragments

瘦欲@ 提交于 2019-12-12 05:38:15
问题 I want my app to retrieve firebase data in 2 ways: Retrieve data for currently logged in user, which I have done using .child(user.getUid()), user = firebaseAuth.getCurrentUser() Retrieve data from all users including the logged in user (hence this question). https://i.stack.imgur.com/WnwQg.png In other word, I want to retrieve all the circled data values. Below are my codes: AdminFragment.java: public class AdminFragment extends Fragment { public AdminFragment() { // Required empty public

Firebase auth rules working for facebook provider but not email/pwd

半城伤御伤魂 提交于 2019-12-12 05:38:04
问题 I am trying to write some rules on my DB that prevent the user from writing unless they are authenticated with a provider other than 'anonymous'. This is the rule that I have but for some reason it works when im logged in with facebook but not with email/password; I get a permission denied error. PS the email/pwd user was created before the upgraded SDK. Any thoughts why this is not working? "updates": { ".read": "auth !== null", ".write": "auth !== null && auth.provider !== 'anonymous'", "

Firebase : Uploading files anonymously without authentication

人走茶凉 提交于 2019-12-12 05:36:57
问题 Using the code below I can see files uploaded to my firebase storage account without authentication, but others fail to upload. UploadFileAsync upload_task; for(int i=0; i<Files.size(); i++) { upload_task=new UploadFileAsync(getApplicationContext()); upload_task.filePath=Files.get(i); upload_task.execute(); count++; } public class UploadFileAsync extends AsyncTask<String, Void, Boolean> { public String filePath; public boolean isUploaded=false; double progress; public Context context; private

Angular 2 route restriction with AngularFire 2 Auth

♀尐吖头ヾ 提交于 2019-12-12 05:17:48
问题 I'm trying to restrict routes to be available only to authenticated users. So far I've added a service call in every route component constructor to check if the user is logged. If not, you get redirected to the login route(index): logCheck(){ this.af.auth.subscribe(user => { if(!user){ this.router.navigate(['']); } }); It works. But I'm not sure if using the constructor of each route component for this is the correct way of doing things, because you are actually loading the component before

Android Firebase: User-specific real-time data is removed when user logs back in

不打扰是莪最后的温柔 提交于 2019-12-12 04:57:50
问题 I am using Firebase Google authentication for login, and I had a list of data points associated with a user. The user populates their data by creating elements in a logged-in session, and these update a list in Firebase that is stored under their uid in a 'user' reference of the RTDB. Key points: When I log out, the data persists. When I log back in, the uid is the same in the RTDB When I log back in, the user-specific list is deleted. How can I make the data persist in the RTDB?

Firebase Java client with custom authentication

强颜欢笑 提交于 2019-12-12 04:43:32
问题 I'm looking for a Firebase Java client that allows custom auth. So I read the documentation and had a look at this answer but I'm still not sure if there is a plain java client for Firebase 3 that allows custom auth with a token. As I understand it: The Java library is supposed to be firebase-server-sdk, which does not have any of the methods in FirebaseAuth that are in the Android SDK like signInWithCustomToken. The Android SDK is Android only and not even on maven central and appears to

How to get authenticated users from firebase database?

馋奶兔 提交于 2019-12-12 04:37:37
问题 I'm creating app where I will be using Firebase messaging service. Messaging is working fine, but now I wish to make it happen between two users. I believe I need to provide a authentication for each user then search for their connections(their friends via their social network connections or their mail ids). I managed to create Google+ authentication in my app using Auth.GOOGLE_SIGN_IN_API and AppInvite.API, but connecting to other users in firebase had no clue, then I went through these

All of a sudden firebase authentication not working! Unexpected response code 400

早过忘川 提交于 2019-12-12 04:34:08
问题 My code was working perfectly fine for the last month didn't even touch it for a while for modifications or edits. But now, this problem came up and ruined my app for good. Please help me. The authentication is not working anymore and always fails. Here is my code package com.example.niki.responderview; import android.app.ActivityManager; import android.app.ProgressDialog; import android.content.Intent; import android.media.MediaPlayer; import android.support.annotation.NonNull; import