Is there any option in Firebase/Firestore for custom username and password authentication in flutter app? - flutter

I searched a lot on the net but couldn't find a solution to creating a login app which validates username and password from Firestore/Firebase, I don't need the providers already mentioned in the Firebase such as Google-sign in, email, phone etc.
Do I need to create my own Database and write the authentication code myself or Firebase has an option for this.
Edit: I want to have a custom username and password to be authenticated from the database. Is there any option for this in Firebase?
Thanks in advance.

Related

login form in flutter with sembast

New to flutter, could someone explain to me how I could make a login form in flutter where I can access with a username and password saved in sembast, that is to say that when I log in I can only access with the email and password that I have saved in sembast
I have seen sembast tutorials but I don't know how to register the password and the user in sembast but I don't know how to do it or how to make the condition in the uqe form you can only enter with the username and password that is in the database data

Supabase - post user sign up verification step - can Supabase handle this logic?

I am experimenting with Supabase as a replacement for Firebase.
When it comes to the Authentication functions, I am trying to replicate what is offered in Firebase.
With Firebase, if you create a new email/password user, then Firebase will send out a 'verify user' email to that user, and within the email there is a link back to the Firebase service that when clicked will action the verify user use case.
I can't find the equivalent verify user feature in Supabase. The Supabase admin console has a facility to define a URL, but I can't find anyway for Supabase to handle this use case. I'm inferring that with Supabase I will need to create a URL somewhere that when called will action the 'verify user' use case. That seems like a serious gap to me.
Any suggestions?
In Supabase, on the Authentication settings for your project under Email Templates you can customize the template and under URL Configuration you can set the redirect pages for the account confirmations. Note that the url for the confirmation of the user (at least for the free tier I've used, here's an example from the docs: https://project-ref.supabase.co/auth/v1/verify?token={{ .TokenHash }}&type=signup&redirect_to=https://example.com/path) is a Supabase URL, once clicked the user will be redirected to the custom set URL.
Check the official documentation for the Email Templates for more info.

How to get a unique key from firebase auth to use as a password alternative for data encryption

I created a password manager in flutter, which stores password encrypted passwords in an db. I access this db via the backend, which is written in python. As a user in the app, you are able to set a master password, which after each login is passed to the backend, to encrypt the data. I now want to add sign in with google functionality (firebase authentication), so that you don't need to type in your master password every time. Is it possible to receive something like a key or a token from firebase after each successful google-login which you can use instead of the master password?
I noticed already that there is this uid in the firebase user class (which i receive from FirebaseAuth.instance.signInWithCredencial(google_sign_in_credencial) in the google registration progress) which is unique for every user, but i dont think that this is secure enough to replace this sensitive master password. I also heard from JWT Authorization, but i am not sure, if it's the right thing for that.

How to add user details to Firestore DB after email verification in Flutter?

I am trying to add users information like email, name etc. to Firestore DB but after email successful verification. How can I do it..?
Thanks
you should implement Firebase authentication to your app.
the flow should be something like this:
on firebase console go under authentication tab and enable email authentication
in your app request user to register/login with firebase authentication by email
after succesfull authentication your user can now write on firebase db
done
now you have to create a new user in the users "table" with a reference to the authentication user id (not mandatory but nice)

Get Tasks list from Google account using username and password

i am developing an desktop application in which i have to get task list from google account (as per requirement ) in analysing i didnot find any way to get it done as i didnot have much idea about Google Task Api and in the documentation provided at google # https://developers.google.com/google-apps/tasks/
i didnot find any authentication mechanism (where a client enters his username and password of his gmail account and get the tasks) as i saw it only uses client key and secret key which is not expected from the user to fill in
so please suggest is there any way to get the google tasks using Username And Password of client ?
Thanks in advance
First follow the steps outlined here and then see the Authorize Request page. The recommended method is OAuth2, so the user will never give you his username and password, instead he will share with you an access token.