googleapis / googleapis/google-api-java-client

Allow to not cache the application default credentials

Abierto
#2,541 0 comentarios 0 reacciones 1 asignado Reclamado por @diegomarquezp Ver en GitHub
priority: p3 type: feature request
Lenguaje dominante
Java
Estrellas
1.5k
Forks
772
Merge medio
1 h 44 min
PR fusionados (30 d)
1

Descripción

When using `GoogleCredential.getApplicationDefault`, the credentials are cached in `DefaultCredentialProvider` ([code](https://github.com/googleapis/google-api-java-client/blob/8b46efb4532097fecff2591398dcf6667718e432/google-api-client/src/main/java/com/google/api/client/googleapis/auth/oauth2/DefaultCredentialProvider.java#L95)).

This is an issue for long lived programs where the application defaults may change. One example is the Gradle wrapper (see https://github.com/gradle/gradle/issues/31652#issuecomment-2535320948).

It would be nice if `GoogleCredential` could be instanciated so that we could manage its lifecycle.

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.