firebase / firebase/firebase-admin-java
[FR] I'd like to be able to enable and disable TOTP MFA from Java code
- 主要語言
- 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.
貢獻指南
研究方向
首先,將要求的 Java Admin SDK 能力與連結的 TOTP MFA 文件以及現有的 gcloud-cli 工作流程進行比較。檢查如何使用服務帳戶檔案取得 token,以及如何透過 HTTP 命令或 SDK API 暴露設定。完成標準是在不使用以瀏覽器為基礎的 gcloud 驗證的情況下,能夠從 Java 啟用和停用 TOTP MFA。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- java
- 領域
- api, authentication
- Issue 類型
- 功能
- 難度
- 5/5
- 預估耗時
- 一週以上
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 25/100