firebase / firebase/firebase-admin-java
[FR] I'd like to be able to enable and disable TOTP MFA from Java code
- Ngôn ngữ chính
- Java
- Star
- 620
- Fork
- 305
- Merge trung bình
- 3 giờ 23 phút
- Pull request đã merge (30 ngày)
- 1
Mô tả
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.
Hướng dẫn đóng góp
Hướng nghiên cứu
Bắt đầu bằng cách so sánh capability Java Admin SDK được yêu cầu với tài liệu TOTP MFA được liên kết và workflow gcloud-cli hiện có. Xem xét cách file service account được sử dụng để lấy token và cách có thể cung cấp configuration thông qua một HTTP command hoặc SDK API. Hoàn tất khi có thể enable và disable TOTP MFA từ Java mà không cần browser-based gcloud authentication.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- java
- Lĩnh vực
- api, authentication
- Loại issue
- Tính năng
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 25/100