intuit / intuit/oauth-pythonclient

Adding support for `x-include-refresh-token-hard-expires-in`

未关闭 适合新手
#56 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Python
星标
86
派生
59
PR 合并指标
30 天内没有已合并 PR

描述

Hello!

Regarding: https://medium.com/intuitdev/track-your-refresh-tokens-hard-expiry-with-a-new-response-field-7a95ed3ab67f

I have built a wrapper around `intuitlib.client.AuthClient` that subclasses both `refresh` and `get_bearer_token` with adding a new param `include_refresh_token_hard_expires_in=False`. When set to `True` is adds the necessary header field. It also adds `self.x_refresh_token_hard_expires_in = None` to the init.

Would you be open to a pull request to get this into the official version? I see in the blog it's *coming soon*. Not sure if that means it's already in the works or not.

Thanks.

贡献指南

这个仓库没有索引到贡献指南

调研方向

Start with intuitlib.client.AuthClient and inspect the refresh and get_bearer_token methods described in the issue. Compare their existing parameters and response handling with the requested include_refresh_token_hard_expires_in option; done means the option adds the required header and exposes the returned value through x_refresh_token_hard_expires_in.

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

评估

技术栈
python
领域
authentication
Issue 类型
功能
难度
2/5
预计耗时
1-3 小时
活跃度
冷清
描述清晰度
基本清楚
新手友好度
72/100

把新 issue 发到你的邮箱

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