intuit / intuit/oauth-pythonclient

get_bearer_token and refresh should return the parsed JSON response.

オープン
#15 コメント 4 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Python
スター
86
フォーク
59
PR マージ指標
30日以内にマージされた PR はありません

説明

Currently these only set the values in the json response as attributes of the AuthClient this makes it difficult to know which attributes will be available when, for instance, `get_bearer_token` sets `realm_id` but `refresh` doesn't.

We want results of talking to AuthClient to be able to participate in our strict runtime type checking which involves converting a primitive python type into an [attrs](https://www.attrs.org/en/stable/) dataclass. Having to construct this dictionary out of the AuthClient before we can do that is annoying and error prone.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。