Skip to content

[FR] I'd like to be able to enable and disable TOTP MFA from Java code #1093

@White-waluigi

Description

@White-waluigi

I want to be able to quickly configure firebase instances (specifically MFA) from my java code.

For this to happen I need a way to:

  • Get a gcloud token (The only way I've found to this is by downloading the gcloud-cli, all other methods somehow lead to invalid tokens) using java code and the firebase service account file
  • Make the configuration (This could be done using an HTTP-Command but I feel like it should be part of the admin-sdk)

Currently I'm using the gcloud-cli. This won't be an option on the server since it needs a browser to login

Apperently this is actually possible in the node sdk using only the service account file, according to the doc:

https://firebase.google.com/docs/auth/web/totp-mfa

I haven't tested it though.

Activity

google-oss-bot

google-oss-bot commented on May 9, 2025

@google-oss-bot

I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @White-waluigi@google-oss-bot

        Issue actions

          [FR] I'd like to be able to enable and disable TOTP MFA from Java code · Issue #1093 · firebase/firebase-admin-java