firebase / firebase-admin-dotnet

Firebase Admin .NET SDK
https://firebase.google.com/docs/admin/setup
Apache License 2.0
357 stars 129 forks source link

Add Email/Password Provider Configuration to Tenant #347

Open jusvit opened 1 year ago

jusvit commented 1 year ago

Feature Request: Add Email/Password Provider Configuration to Tenant

Description

I would like to request the addition of a feature in the FirebaseAdmin SDK for C# to allow adding email/password provider configuration to a specific tenant in Firebase Authentication. Currently, there is no direct API available in the SDK to enable and configure the email/password provider for a tenant.

Proposed Solution

Ideally, the FirebaseAdmin SDK for C# should provide a dedicated API or method to update the authentication configuration of a tenant and enable the email/password provider with specific settings such as password requirements.

In the node SDK version of Firebase you can do the following:

    const tenant = await this.firebase
      .auth()
      .tenantManager()
      .createTenant({
        displayName: NAME,
        emailSignInConfig: {
          enabled: true,
          passwordRequired: true
        }
      });

Alternatives

As a workaround, I understand that it is possible to make direct HTTP requests to the Firebase Authentication REST API to achieve this functionality. However, it would be more convenient and consistent to have this feature directly available in the SDK.

Thank you for considering this feature request. Please let me know if any further information is needed.