Firebase Admin SDK - Manually change a user's password through firebase functions with Admin SDK - firebase-authentication

Is there a way to manually change a user's password through firebase functions with Admin SDK?
I tried to do this using updateUser method in the Admin SDK but I'm not sure if it's the right approach.
What I'm trying to do is to have an action button which defaults the password to "Password#123" on the dashboard.

You have to use the updateUser() method, as shown in the Admin SDK doc.
If you want to call the Cloud Function (which uses this method) from your app you can use a Callable Cloud Function.

Related

How to verify Firebase password reset code with firebase admin SDK?

I know it is possible with the client SDK but is it possible with the admin SDK? The reason I want to do this is because I want my own back-end to verify the code so that I can also send a password reset confirmation email. Is this possible?
The Admin SDK does not provide this functionality. However, you are free to implement a password reset system yourself, using the Admin SDK only to actually change the user's password by updating the user account.

How to enable email and password signin provider for new firebase project using gcloud console or firebase tools CLI?

In the company I am working for, we provide a solution for other companies, and we want each company to have a separate instance of that solution, this includes a separate database instance, the database is Firebase, this choice of creating a new separate instance is required due to data privacy laws of the country we work in.
I am working on a script that when triggered by the new client SignUp, it starts the creation of new solution instance, including the creation of the new Firebase project, and I am using firebase-tools CLI and gcloud CLI.
The project creation happens correctly, and the admin account is created, the only remaining thing is to allow the admin to be able to login to the new Firebase project. This is usually done manually from the Firebase web console, by enabling a login provider, an Email&Password login provider in my case. This part of the process is so not automated, because I can't find the command that I should pass to Firebase-tools or gcloud ClI to enable a login provider in a Firebase project.
What is a command that you can pass to Firebase tools or to gcloud CLI , to change firebase project confguration to enable a signin provider ? signin usng Email&Passsword in this case .. Or is there a way to do it programmatically using Google client libraries ?
From looking at the REST API for the Google Identify Platform, I don't immediately see a call that shows email+password authentication. Unless I'm overlooking something this means it might not be possible to programmatically enable this provider through a public API.
From checking what the Firebase console does, it seems it handles the provider configuration through the https://identitytoolkit.clients6.google.com/admin/v2/projects/<projectid>/config endpoint, but I'm not sure that is part of the public API.
This seems possible now via Identity Toolkit API. The v2.projects REST resource has updateConfig method, and the Config contains SignInConfig which have the Email property.

Add User To Group After Signup AWS-Cognito (Android)

After signing up a new user , I would like to add that user to an existing Cognito Group . Is this possible in android?
This is the API you can call to add a user to a group - https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_AdminAddUserToGroup.html
In the Android AWS SDK, you can call this api.
Here's some documentation on using the Android SDK to call cognito -https://aws.amazon.com/blogs/mobile/using-android-sdk-with-amazon-cognito-your-user-pools/
Just simply call the aforementioned api to add a user to a group

Making Google account selector screen mandatory

So I have implemented Google authentication by using AWS Amplify (federatedSignIn) in my React app. Apparently, I want to make the google account selector screen mandatory for the user to select an account to log in. Apparently, it works only when multiple google accounts are available to choose from, but if there is only one account, the system automatically uses it to login?
How can I enforce the selection screen with only one account?
That is google's functionality. You cannot change how google handles their login requests.
See more: https://developers.google.com/identity/toolkit/web/federated-login

Is it possible to implement one-click Facebook login with Ionic?

Right now, the Facebook login I have implemented in the Ionic app asks for the user to type in email address and password manually instead of using user's FB authentication details from either the FB app or the phone's FB setting.
I'd like the login system to not ask the user to manually type in their email address and password, and will use the FB authentication inside the phone instead.
I'd like to do this in both Android and iOS if possible. If not then one is better then none.
You can use Facebook Connect plugin, this plugin is also available for ngCordova. I've used it and it works fine. In case you have Facebook app already installed on your iOS/Android device it will use that app to log in the user automatically.
http://ngcordova.com/docs/plugins/facebook/