intuit / intuit/oauth-pythonclient
Adding support for `x-include-refresh-token-hard-expires-in`
- Ngôn ngữ chính
- Python
- Star
- 86
- Fork
- 59
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
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.
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- python
- Lĩnh vực
- authentication
- Loại issue
- Tính năng
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức độ hoạt động
- Ít trao đổi
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 72/100