apache / apache/arrow-java

[FlightRPC] Bearer Token refresh design with retry mechanism

Aperta
#393 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Type: enhancement
Lingua principale
Java
Stelle
94
Fork
152
Merge medio
3g 16h
PR unite (30g)
11

Descrizione

- The generated bearer token by implementations of CallHeaderAuthenticator such as BearerTokenAuthenticator are bound to expire.
- The expired access token needs to be refreshed.
- The FlightClient needs to retry the API call on encountering FlightStatusCode.TOKEN_EXPIRED and refresh the expired token.

Refer to this [design document](https://docs.google.com/document/d/187DlGpIpOUPGhWvXVQEq0mXw_hdWjzzOuZp0p5qzBp0/edit?usp=sharing) for more details.

**Reporter**: [Keerat Singh](https://issues.apache.org/jira/browse/ARROW-10671)
#### PRs and other links:
- [GitHub Pull Request apache/arrow#8780](https://github.com/apache/arrow/pull/8780)

**Note**: *This issue was originally created as [ARROW-10671](https://issues.apache.org/jira/browse/ARROW-10671). Please see the [migration documentation](https://github.com/apache/arrow/issues/14542) for further details.*

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Inizia con le implementazioni di FlightClient e CallHeaderAuthenticator, inclusa BearerTokenAuthenticator, quindi esamina il documento di progettazione collegato e la pull request #8780. Il lavoro è completato quando le risposte dovute a token scaduti attivano l’aggiornamento del token e FlightClient ritenta la chiamata API come specificato.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
java
Ambito
api, authentication
Tipo di issue
Funzionalità
Difficoltà
5/5
Tempo stimato
Più di una settimana
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
15/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.