firebase / firebase/firebase-admin-java
[FR] I'd like to be able to enable and disable TOTP MFA from Java code
- Langage dominant
- Java
- Étoiles
- 620
- Forks
- 305
- Merge moyen
- 3 h 23 min
- PR mergées (30 j)
- 1
Description
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.
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Commencez par comparer la fonctionnalité Java Admin SDK demandée avec la documentation TOTP MFA liée et le workflow gcloud-cli existant. Examinez comment le fichier du compte de service est utilisé pour obtenir un token et comment la configuration pourrait être exposée via une commande HTTP ou une API SDK. Le travail est considéré comme terminé lorsqu’il est possible d’activer et de désactiver TOTP MFA depuis Java sans authentification gcloud basée sur un navigateur.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- java
- Domaine
- api, authentication
- Type d'issue
- Fonctionnalité
- Difficulté
- 5/5
- Temps estimé
- Plus d'une semaine
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 25/100