[FlightRPC] Bearer Token refresh design with retry mechanism
- Langage dominant
- Java
- Étoiles
- 94
- Forks
- 152
- Merge moyen
- 3 j 16 h
- PR mergées (30 j)
- 11
Description
- 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.*
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Commencez par les implémentations de FlightClient et de CallHeaderAuthenticator, y compris BearerTokenAuthenticator, puis examinez le document de conception associé et la pull request #8780. Le travail est terminé lorsque les réponses dues à l’expiration d’un token déclenchent son actualisation et que FlightClient réessaie l’appel API comme spécifié.
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
- 15/100