firebase-authentication

Firebase token verification in php

与世无争的帅哥 提交于 2019-12-25 09:00:56
问题 I have a backend in php for a client in Android, I'm using the login by email/password provided by Firebase. I want to verify the token in the backend. I'm having some troubles that until now i could not fix. The first is a doubt, acording to Firebase the header will contain a kid that must match with some public key provided by them in this site: https://www.googleapis.com/robot/v1/metadata/x509/securetoken@system.gserviceaccount.com well I have done some tests and I figured out that this

Swift Firebase check if email is already in use

青春壹個敷衍的年華 提交于 2019-12-25 08:17:58
问题 I want to be able to check if an email address is already been used (so if somebody put test1@test.com but another user already registered with that email account). I have a simple test if it has NOT been used an image view shows a green arrow, if it HAS been used then it is red x when I create the user I use the following code FIRAuth.auth()?.createUser(withEmail: email, password: password, completion: { (user, error) in if error == nil { self.ref.child("userEmails").child((user?.uid)!)

Converting to Swift 3 (Swift and Firebase Project)

好久不见. 提交于 2019-12-25 08:07:53
问题 I have just updated my Xcode to Xcode8 and I have converted the project to swift 3. In signIn function here: Firth. Auth()?.signIn(withEmail: self.EmailTF.text!, password: self.PasswordTF.text!, completion: { (user: FIRUser?, error: NSError?) in if let error = error { print(error.localizedDescription) } else { self.ref.child("UserProfile").child(user!.uid).setValue([ "email": self.EmailTF.text!, "name" : self.NameTF.text!, "phone": self.PhoneTF.text!, "city" : self.CityTF.text!, ]) print(

I'm getting this error: “The specified authentication provider is not enabled for this Firebase.”, even though I HAVE enabled the required providers

扶醉桌前 提交于 2019-12-25 08:04:30
问题 Please, someone help me. I just cannot understand what's going wrong! And I have also included the google-services.json file in the app folder. Please, any help is really really appreciated. I'm kinda going pretty mad about this. And the error is specifically: I/System.out: The specified authentication provider is not enabled for this Firebase. This is my MainActivity.java class: public class MainActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState)

Firebase google auth sign is getting failed

旧时模样 提交于 2019-12-25 08:04:16
问题 I am trying to do Firebasegoogle authentication, but everytime am getting public void onComplete(@NonNull Task<AuthResult> task) task.isSuccessful() as false with the follwing exception com.google.firebase.FirebaseException: An internal error has occurred. [ Bad Request ] at com.google.android.gms.internal.zzbix.zzcb(Unknown Source) at com.google.android.gms.internal.zzbiu$zzj.zza(Unknown Source) at com.google.android.gms.internal.zzbjf.zzcc(Unknown Source) at com.google.android.gms.internal

What password will I ask if auth/account-exists-with-different-credential is thrown

半世苍凉 提交于 2019-12-25 07:49:09
问题 Here is my scenario, if user sign in with google provider first in my web application following after sometimes the same user may try to login in using facebook provider, now if the user's facebook provider email id matches with the previous google provider mail id in firebase, it will throw error like "account-exists-with-different-credential" in this case firebase will give us the facebook provider email id and instructed us to get the "Asks the user his password." what password will I ask

signedIn property of domHost is false on ready function call

你离开我真会死。 提交于 2019-12-25 07:32:38
问题 I want to check if the user is logged in on element creation and eventually redirect him if the user is not. The problem is that the domHost.signedIn property is false even though the user is signedIn. If I check the property later(for example when I call a function with button tap) the property is true as it should be. Here is the code: <link rel="import" href="../bower_components/polymer/polymer.html"> <link rel="import" href="/bower_components/paper-button/paper-button.html"> <dom-module

Sign in with username instead of email into ios app and firebase

天大地大妈咪最大 提交于 2019-12-25 05:05:18
问题 Here is my situation, I am using firebase as a DB for an iOS App. user are able to login via their Email by: @IBAction func signInButtonPressed(_ sender: UIButton) { if let email = emailField.text, let password = passwordField.text { FIRAuth.auth()?.signIn(withEmail: email, password: password) { (user, error) in if let error = error { let alertController = UIAlertController(title: "Login or password incorrect", message: "", preferredStyle: UIAlertControllerStyle.alert) alertController

Sign in with username instead of email into ios app and firebase

守給你的承諾、 提交于 2019-12-25 05:05:13
问题 Here is my situation, I am using firebase as a DB for an iOS App. user are able to login via their Email by: @IBAction func signInButtonPressed(_ sender: UIButton) { if let email = emailField.text, let password = passwordField.text { FIRAuth.auth()?.signIn(withEmail: email, password: password) { (user, error) in if let error = error { let alertController = UIAlertController(title: "Login or password incorrect", message: "", preferredStyle: UIAlertControllerStyle.alert) alertController

App crashes with java.lang.NullPointerException

≡放荡痞女 提交于 2019-12-25 04:26:18
问题 I wanted to filter all the posts with orderbychild. But the app crashes. After I debug it shows error on : final String currentUserId=mAuth.getCurrentUser().getUid(); this line of code. // I tested on one device but it works fine but in two other devices the app crashes //Here's my error report java.lang.NullPointerException at com.soumya.uglypeople.MyPosts.onCreateView(MyPosts.java:80) at android.support.v4.app.Fragment.performCreateView(Fragment.java:2087) at android.support.v4.app