firebase-authentication

How to transfer the Firebase reference to another android activity

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-18 08:46:26
问题 We have 2 Android activities (activity A and activity B) Suppose that we instantiated a Firebase reference in activity A. Activity A also handles all user authentication (Facebook, Google, and email/password). Activity B, which is started from activity A using an Android intent, should use the Firebase reference to access some data on the Firebase servers. Now I was wondering what the best design is to send the Firebase ref from activity A to activity B. Bundle the Firebase reference with the

How to transfer the Firebase reference to another android activity

女生的网名这么多〃 提交于 2019-12-18 08:45:49
问题 We have 2 Android activities (activity A and activity B) Suppose that we instantiated a Firebase reference in activity A. Activity A also handles all user authentication (Facebook, Google, and email/password). Activity B, which is started from activity A using an Android intent, should use the Firebase reference to access some data on the Firebase servers. Now I was wondering what the best design is to send the Firebase ref from activity A to activity B. Bundle the Firebase reference with the

Android auth firebase error: Local module descriptor class for com.google.firebase.auth not found

。_饼干妹妹 提交于 2019-12-18 08:25:48
问题 I'm trying to build an app with login/register capabilities through Firebase. I'm working on it with a partner (he's on Linux, I'm on Mac), and he's able to get the authentication working but for some reason I am not. We have all the same code, SDK tools checked in the SDK manager, running the same version of everything. Here's the gradle file: compile 'com.android.support:appcompat-v7:25.3.0' compile 'com.android.support.constraint:constraint-layout:1.0.2' compile 'com.google.firebase

Android auth firebase error: Local module descriptor class for com.google.firebase.auth not found

。_饼干妹妹 提交于 2019-12-18 08:25:32
问题 I'm trying to build an app with login/register capabilities through Firebase. I'm working on it with a partner (he's on Linux, I'm on Mac), and he's able to get the authentication working but for some reason I am not. We have all the same code, SDK tools checked in the SDK manager, running the same version of everything. Here's the gradle file: compile 'com.android.support:appcompat-v7:25.3.0' compile 'com.android.support.constraint:constraint-layout:1.0.2' compile 'com.google.firebase

Firebase v3 updateProfile Method

落花浮王杯 提交于 2019-12-18 08:10:11
问题 Firebase v3 Auth offers an updateProfile method that passes displayName and photoURL to Firebase. My understanding is that these properties are retrieved from 3rd party oAuth providers Google, Facebook, Twitter, or GitHub upon user login. In case of Password based Auth, they are not available or viewable from the Admin console. Can I store this info for password Auth accounts, and if so can I view/administer this info via the Admin console? BTW: I know this could be stored in the Realtime

How can i access firebase variable outside firebase function

泄露秘密 提交于 2019-12-18 07:35:10
问题 Im trying to update a variable inside a class "var CurrentStatus:status! " status is an enum. I have a firebase function that will update the variable. the variable get update inside the firebase function but it will not update the variable outside of the firebase function class signUpClass:UIViewController { // check to see if form is empty let ihelpController = UIViewController() var CurrentStatus:status! func signUp(var formArray: [String:String]) -> status{ var formStatus:status =

Value of type 'AuthDataResult' has no member ‘uid’

孤街浪徒 提交于 2019-12-18 07:14:42
问题 I am trying to access a user's uid in Firebase Authentication. I created a createUser completion block in my code and at the end of the block I want to check for the user in which I named firUser. When I try to add firUser.uid in my User I get the error message "Value of type 'AuthDataResult' has no member ‘uid’" Below is a copy of the code I wrote hopefully some one can help me. Auth.auth().createUser(withEmail: email, password: password, completion: { (firUser, error) in if error != nil { /

firebase security permission not working

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-18 06:56:08
问题 I have below data stored in my firebase : firebaseRoot admins simplelogin:1: users simplelogin:1 email: abc@xyz.com picture: csd provider: password uid: simplelogin:1 simplelogin:2 email: abc1@xyz.com picture: zsd provider: password uid: simplelogin:1 and following security rules: { "rules": { "admins": { ".read": "root.child('admins').child(auth.uid).val() === true", ".write": "root.child('admins').child(auth.uid).val() === true" }, "users": { "$user":{ ".read": "$user === auth.id || root

Restricting Firebase read/write access to only myself

自古美人都是妖i 提交于 2019-12-18 06:10:33
问题 I have a static website which runs: config = apiKey: "HIDDEN" authDomain: "HIDDEN" databaseURL: "HIDDEN" storageBucket: "" firebase.initializeApp(config) in the browser (it's compiled to javacript) to authenticate with Firebase's server. Am I confused here? Is this a valid way to authenticate with Firebase from the browser? I got the code from their "web" tutorial, so I'm figuring it is. Now, I need to configure my Firebase database rules so that me and only me can read & write it. How could

Is there a way to send the verification email with the Firebase Admin SDK from my Node.js server?

百般思念 提交于 2019-12-18 06:06:32
问题 Is there a way to send the email verification email from my server ? This is how it's done on the client: authData.sendEmailVerification().then(function() { Is there a way to do it on the server ? 回答1: firebaser here To my surprise there currently is no option to send verification email from within the Admin SDK. I'd recommend you file a feature request. What you can do from the Admin SDK is update a user profile to mark their email as verified. This allows you to take control of the entire