firebase / firebase/firebase-admin-java

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

未关闭
#1,093 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
needs-triage type: feature request
主要语言
Java
星标
620
派生
305
平均合并
3 小时 23 分钟
30 天内合并 PR
1

描述

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.

贡献指南

打开贡献指南

调研方向

Start by comparing the requested Java Admin SDK capability with the linked TOTP MFA documentation and the existing gcloud-cli workflow. Review how the service account file is used to obtain a token and how the configuration could be exposed through an HTTP command or SDK API. Done means enabling and disabling TOTP MFA from Java without browser-based gcloud authentication.

由索引模型根据 Issue 内容生成。

评估

技术栈
java
领域
api, authentication
Issue 类型
功能
难度
5/5
预计耗时
一周以上
活跃度
停滞
描述清晰度
基本清楚
新手友好度
25/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。