firebase / firebase/firebase-admin-java
[FR] I'd like to be able to enable and disable TOTP MFA from Java code
- Linguagem predominante
- Java
- Estrelas
- 620
- Forks
- 305
- Merge médio
- 3h 23min
- PRs com merge (30d)
- 1
Descrição
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.
Guia de contribuição
Direção de pesquisa
Comece comparando o recurso solicitado do Java Admin SDK com a documentação vinculada sobre TOTP MFA e o workflow existente do gcloud-cli. Revise como o arquivo da conta de serviço é usado para obter um token e como a configuração poderia ser exposta por meio de um comando HTTP ou de uma API do SDK. Considera-se concluído quando for possível habilitar e desabilitar o TOTP MFA a partir do Java sem autenticação do gcloud baseada em navegador.
Escrita pelo modelo de indexação a partir do texto da issue.
Avaliação
- Stack de tecnologia
- java
- Domínio
- api, authentication
- Tipo de issue
- Funcionalidade
- Dificuldade
- 5/5
- Tempo estimado
- Mais de uma semana
- Status de atividade
- Estagnada
- Clareza
- Razoavelmente clara
- Facilidade para iniciantes
- 25/100