Firebase , Active Directory - Will AD users get created in Firebase as well?

52 Views Asked by At

I am reading about integrating Azure AD with Firebase so that our corporate customers can use our system using their accounts. My question is:

When a user with an email [email protected] signs in using AD for the first time, will a User(User with uid, etc) get created in Firebase?

2

There are 2 best solutions below

2
Robert Sandberg On BEST ANSWER

Yes, a new account will be created after a user's first sign in.

2
Alex Mamo On

If you want to implement Firebase Authentication with email and password, please note that the user is created in Firebase Authentication only when you call create_user. So a function that does that might look like this:

def create_user(email, password):
    user = auth.create_user(email=email, password=password)
    return user

Besides that, please also keep in mind that logging into Firebase happens on the client, and not on the server. So the Firebase Admin SDK doesn't have a method to sign the user in, only the client-side SDKs have such methods.