Firebase sign In email/password

Discussion in 'Job Offers' started by gregorio_adrian_gimenez, Jul 22, 2019.

  1. gregorio_adrian_gimenez

    gregorio_adrian_gimenez Active Member Licensed User

    ilan, Erel and ShaneG30 like this.
  2. gregorio_adrian_gimenez

    gregorio_adrian_gimenez Active Member Licensed User

    HI!! , anyone who can create this library for me? I need your help, I would pay your honorary
     
  3. Brandsum

    Brandsum Well-Known Member Licensed User

  4. DonManfred

    DonManfred Expert Licensed User

    He need a customized UI.
    Firebase UI comes with its own Layout.

    Away from that the newest Firebase UI which depend on AndroidX i did not get working (for months now)
     
    Sai Main Seng Kham likes this.
  5. ilan

    ilan Expert Licensed User

    I don't understand what you understand from his post. what i understand is that he wants an example (or create a lib) to login to firebase using Gmail account so basically, firebase auth what we already have here. where is he asking about UI?? don't see that in his question.

    @gregorio_adrian_gimenez can you please explain what you need? do you want to use a Login Option in your app using Gmail accounts?
     
  6. gregorio_adrian_gimenez

    gregorio_adrian_gimenez Active Member Licensed User

    Hi, what I need is a library that allows me to log in with an email / password, not gmail. The FirebaseAuthex library has some problems. A moment ago I published a code, which solves these inconveniences, however, it is not a fundamental solution.
    Thanks for answering!
     
  7. ilan

    ilan Expert Licensed User

    in this case i would go with a mysqldatabase and php. something like this:

    https://www.b4x.com/android/forum/threads/free-source-codes.53152/page-2#post-393690
     
  8. gregorio_adrian_gimenez

    gregorio_adrian_gimenez Active Member Licensed User

    Hi, thanks for replying, is it that I need to log in to Firebase, does this solution apply?
     
  9. ilan

    ilan Expert Licensed User

    no it is a db on your server (if you have one) if not you can get also for free a server.
    firebase does offer firebase DB and you could use it to add users to it. i did a simple example on android studio and it works fine i think @DonManfred has wrapped firebase db lib. you may look for it.

    sorry forget what i wrote above, you can also use your own email account to create firebase users. but i think there is no example on this forum.
     
    Last edited: Jul 28, 2019
  10. gregorio_adrian_gimenez

    gregorio_adrian_gimenez Active Member Licensed User

  11. DonManfred

    DonManfred Expert Licensed User

    I got it working writing a new wrapper. Google has changed something or i do not get the dependencies right.
    Anyway:
    - I got it working together with FirebaseAuth.
    - You can request signin per email and password; bout you do not get any userinfos with firebase authex. But you can use the FirebaseAuth methods to check/get the currentuser and to get the userinfos.
    Code:
    authex.signInWithEmailAndPassword("xxx","yyy")
    Code:
    Sub AuthEx_onAuthenticated(success As Boolean, result As Object, info As String)
        
    Log($"AuthEx_onAuthenticated(${success}, ${result}, ${info})"$)
        
    If success Then
            
    If auth.CurrentUser.IsInitialized Then Auth_SignedIn(auth.CurrentUser)
        
    End If
    End Sub
    - You can send a request to reset a password using

    Code:
    Sub btnResetPassword_Click
        authex.sendPasswordResetEmail(
    "xxx"' replace xxx by the email for which the password should get resetted.
    End Sub
    Code:
    Sub AuthEx_PasswordReset(success As Boolean)
        
    Log($"AuthEx_PasswordReset(${success})"$)
    End Sub
    The event just tells about the success of this method to "send the email".
    The user must read his email, click the link in the email to reset the password and to set a new one.
    After he did this
    [​IMG]

    the user now can use his new password.

    Unfortunately delete a useraccount i did not get to work based on internal dependencies.

    You maybe can try to use the Firebase Rest Api to do so.
     

    Attached Files:

    jimmyF, yiankos1, Erel and 1 other person like this.
  12. gregorio_adrian_gimenez

    gregorio_adrian_gimenez Active Member Licensed User

    Hi Mandfred, unfortunately I can't use the FBAuthEx2 library, because it doesn't have the function to create an account.
    This function in FBAuthEx and the two enabled libraries conflict.
    FBAuthEx also cannot be declared in Process_Global.
    Can this be resolved?
    From already thank you very much
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice