firebase-authentication

Get Twitter profile url from Firebase OAuth

我是研究僧i 提交于 2019-12-06 10:57:41
Hello i want to get a profile Url from the Firebase OAuth response, currently firebase give this about the profile : displayName, email, photoURL, uid Have you any idea if its possible ? (I work with a serverless project) You will get additional user info when the sign in attempt resolves: firebase.auth().signInWithPopup(new firebase.auth.TwitterAuthProvider()) .then(function(userCredential) { // All additional user info is available here. console.log(userCredential.additionalUserInfo.profile); }) .catch(function(error) { // Error occurred. }); For more on this, check firebase.auth

How to make sure a user can only see and access their own data in firebase?

 ̄綄美尐妖づ 提交于 2019-12-06 10:41:39
问题 I am new to firebase. In my Android app, I want each user to only access the data he created. I was reading https://www.firebase.com/docs/security/guide/securing-data.html, but didn't make much sense out of it. Assuming I am already logged in with an email and password, How can should I write the Firebase Rules? How do write to my Firebase data in my Android Java code? Thanks! Firebase Rules { "rules": { ".read": true, ".write": true } } Java Code myFirebaseRef.child("message").setValue("This

$authWithPassword is not a function in AngularFire 2.x

ぃ、小莉子 提交于 2019-12-06 10:39:32
I've seen posts about this problem before, but they're either outdated or offer a solution very similar to my setup. Basically, I have two functions in my controller: authCtrl.login and authCtrl.register. The register's call to Auth.$createUserWithEmailAndPassword() works fine, but the login's call to Auth.$authWithPassword() does not, as I'm getting a "..is not a function" error. Can't for the life of me figure out what is wrong here. Here's my setup: auth.service.js: angular.module('angularfireSlackApp') .factory('Auth', function($firebaseAuth, $firebaseObject){ var auth = $firebaseAuth();

Firebase Auth with Firefox Web Extension Add On

和自甴很熟 提交于 2019-12-06 10:34:18
I am creating a web extension both for chrome and firefox. I have integrated firebase UI and firebase auth. Google authentication works well on chrome extension. But on firefox extension/add-on it gives me the following error. This operation is not supported in the environment this application is running on. "location.protocol" must be http, https or chrome-extension and web storage must be enabled. I tried couple of things, but none worked. Tried adding moz-extension://dhhjsbhjbajnsabjajbasjbhjasjh in authoirsed domain in firebase auth console. Validation error. Tried both pop up and redirect

Enforce custom rules for passwords for Firebase Auth accounts

纵饮孤独 提交于 2019-12-06 09:59:06
Is there any way that I could set custom rules for passwords when a user create an account? It seems like firebase doesn't provide a way to edit the password rules. I know I can set password rules on front end, but just like Frank van Puffelen mentioned, this method can be bypassed by directly calling the API. Is is possible to write some cloud function to handle account-creation request, and reject the request if the password is invalid? Sure, you can write a Cloud Function to create email/password accounts. You'll need to use the Admin SDK to get a hold of user management APIs . 来源: https:/

displayName showing null after creating user with Firebase Auth

廉价感情. 提交于 2019-12-06 09:58:26
问题 I'm trying to add a user using the Firebase auth and it returns the displayName as null, even though it asks for it via the UI on sign up. Any ideas why and how to fix? Here's the code I am using to do this: startActivityForResult( AuthUI.getInstance() .createSignInIntentBuilder() .setProviders(Collections.singletonList(new AuthUI.IdpConfig.Builder(AuthUI.EMAIL_PROVIDER).build())) .build(), RC_SIGN_IN); and in the Activity for Result.... protected void onActivityResult(int requestCode, int

Firebase sharing data with other users

戏子无情 提交于 2019-12-06 09:34:10
I want to create item lists using Firebase that can be created by a user and then he can specify other users to share the list with (so they can also modify its contents). I plan to do this by using the following structure: So the user section specifies the lists that a user has. Then the node 'lists', all lists created have a unique id and for each list its members are specified: In this example, Rick is the admin of the list and Tom just a member. Now I want the rules to, for example, only allow reading and writing under the 'items' node, if the user id is present under the 'members' node.

How to implement an image popup in jquery for firebase

懵懂的女人 提交于 2019-12-06 09:33:51
I am in a bit trouble as I don't know how to implement the image popup in jquery for firebase. I have searched it on the internet but did not find the way how to implement it for the dynamic websites. I am having the following jquery code, can anyone help? I haven't found anything on stackoverflow also regarding this. this is my html code <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after*

How would I create Usernames with Firebase?

我们两清 提交于 2019-12-06 09:25:28
I am still new to swift and coding with Xcode and using Firebase. I have been able to create a sign up and login page with Firebase authentication. I have been wondering how would I allow people to create custom unique usernames. I have been searching for a while now on the web and I can't find much. I want to learn how to implement usernames with in my app so users can create unique usernames and have their own profiles. In addition to my comment. let currentUserId = FIRAuth.auth()?.currentUser?.uid let currentUserRef = FIRDatabase.database().reference(withPath: "MainDataBase/users").child

How to prevent Play Store testing from affecting Firebase Analytics

三世轮回 提交于 2019-12-06 09:16:32
问题 I just launched a new app and I am using Firebase Analytics. However, every time I upload a new release to the play store, it is automatically tested by Google on 11 devices. Which is great! Is there a way to prevent those tests from impacting the analytics? I am starting with a small user base, so it can affect it greatly. I also created an anonymous Auth. Is there a way to prevent it from creating anonymous accounts for those pre-release tests? Can I identify them so I can delete them on