firebase-authentication

Firebase Auth: Requests from this Android client application com.xxx are blocked

若如初见. 提交于 2020-05-11 05:13:59
问题 I'm implementing the standard tutorial for Firebase AuthUI in my android app. However, when testing I try to sign-in using Google sign-in from within the app and get the following exception: com.google.firebase.FirebaseException: An internal error has occurred. [ Requests from this Android client application com.xxx are blocked. ] The app displays the "Google SmartLock" banner as if it's signing me in, but then disappears and in the logcat I see the error above. I verified that my SHA-1

Firebase Auth: Requests from this Android client application com.xxx are blocked

江枫思渺然 提交于 2020-05-11 05:13:06
问题 I'm implementing the standard tutorial for Firebase AuthUI in my android app. However, when testing I try to sign-in using Google sign-in from within the app and get the following exception: com.google.firebase.FirebaseException: An internal error has occurred. [ Requests from this Android client application com.xxx are blocked. ] The app displays the "Google SmartLock" banner as if it's signing me in, but then disappears and in the logcat I see the error above. I verified that my SHA-1

Use FirebaseUI with AngularFire2

时光总嘲笑我的痴心妄想 提交于 2020-05-10 09:05:57
问题 I haven't found any samples. Is it possible to use the FirebaseUI with AngularFire2? AFAIK the UI is not part of AngularFire2. 回答1: There is indeed no direct integration between FirebaseUI (for the web) and AngularFire2. AngularFire2 has built in sign-in primitives that integrate with the lower-level sign-in functionality of the Firebase Authentication JavaScript SDK. For more about those, see the AngularFire2 documentation on user authentication. But given that both AngularFire2 and

Use FirebaseUI with AngularFire2

匆匆过客 提交于 2020-05-10 09:05:15
问题 I haven't found any samples. Is it possible to use the FirebaseUI with AngularFire2? AFAIK the UI is not part of AngularFire2. 回答1: There is indeed no direct integration between FirebaseUI (for the web) and AngularFire2. AngularFire2 has built in sign-in primitives that integrate with the lower-level sign-in functionality of the Firebase Authentication JavaScript SDK. For more about those, see the AngularFire2 documentation on user authentication. But given that both AngularFire2 and

firebase cloud function authentication: onCreate event doesn't contain displayName

谁说我不能喝 提交于 2020-05-09 16:56:02
问题 I have a cloud function for onCreate that looks like exports.addNewUserToCollection = functions.auth.user().onCreate(event => { const user = event.data; // The Firebase user. var userData = JSON.parse(JSON.stringify(user)); if (!userData.displayName){ userData.displayName = '(no name)' } return db .collection("users") .doc(user.uid) .set(userData); }); it works fine except when the user signs up via email. When the user signs up via email they are prompted for a first and last name and this

firebase cloud function authentication: onCreate event doesn't contain displayName

岁酱吖の 提交于 2020-05-09 16:52:08
问题 I have a cloud function for onCreate that looks like exports.addNewUserToCollection = functions.auth.user().onCreate(event => { const user = event.data; // The Firebase user. var userData = JSON.parse(JSON.stringify(user)); if (!userData.displayName){ userData.displayName = '(no name)' } return db .collection("users") .doc(user.uid) .set(userData); }); it works fine except when the user signs up via email. When the user signs up via email they are prompted for a first and last name and this

How to create Firebase Authentication claims?

左心房为你撑大大i 提交于 2020-05-09 10:25:11
问题 I am developing an Android app that needs to authenticate with a server application. The server application is a Spring Boot app that uses Spring Security. The server app uses a custom authentication provider to set the Granted Authorities for the user. This is the code that I am using to retrieve the idToken: FirebaseToken firebaseToken = null; try { FirebaseApp app = FirebaseUtil.getFirebaseApp(); firebaseToken = FirebaseAuth.getInstance(app).verifyIdTokenAsync(authenticationToken

Firebase phone auth verification limit

白昼怎懂夜的黑 提交于 2020-05-09 08:43:32
问题 Firebase says that for the Spark plan the limit for phone auth verification is 10k / month. So, suppose 1000 users login using phone auth 5 times each (after signing out each time) then will it be counted as 5000 verifications or 1000 verifications? 回答1: I just tried and tested it out. The billing is calculated on the basis of the total number of phone verifications by the users. So in your case, if all 1000 users sign-out and then sign-in again and repeat this over 5 times, you'd have used

Empty email field of Firebase Auth User using Facebook Login Integration (Firebase 3.0)

我的未来我决定 提交于 2020-05-07 10:34:11
问题 I have successfully deployed tutorial code from https://firebase.google.com/docs/auth/android/facebook-login for integrating Firebase Auth logins with Facebook. The users successfully created in Firebase Auth console. However, I noticed that the Email field in the user object is empty (—). Strangely, I successfully retrieved the email information directly from provider result objects using GraphRequest using the acquired token. Based on the documentation I read (https://firebase.google.com

Posting to Firestore with Custom Token caused Request had invalid authentication credentials. Expected … valid authentication credential

半世苍凉 提交于 2020-05-01 09:50:25
问题 Final goal: an Angular client receives a token valid for one hour in order to query data from FireStore. Steps to produce a prove of concept and learn how to work with Custom Tokens: 1 - I created a project in Firebase using firebase tool (https://console.firebase.google.com/project/firetestjimis/overview) 2 - I added Firestore database and created a collection. I chose production instead of test because this POC is aimed for security reasons. 3 - I added manually an user in Firebase