apache / apache/arrow-java

[FlightRPC] Bearer Token refresh design with retry mechanism

未关闭
#393 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
Type: enhancement
主要语言
Java
星标
94
派生
152
平均合并
3 天 16 小时
30 天内合并 PR
11

描述

- 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.*

贡献指南

打开贡献指南

调研方向

先从 FlightClient 和 CallHeaderAuthenticator 的实现开始,包括 BearerTokenAuthenticator,然后查看链接的设计文档和 pull request #8780。完成标准是:过期 token 的响应会触发 token 刷新,并且 FlightClient 会按规定重试 API 调用。

由索引模型根据 Issue 内容生成。

评估

技术栈
java
领域
api, authentication
Issue 类型
功能
难度
5/5
预计耗时
一周以上
活跃度
停滞
描述清晰度
基本清楚
新手友好度
15/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。