intuit / intuit/oauth-pythonclient

get_bearer_token and refresh should return the parsed JSON response.

Ouverte
#15 4 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
Python
Étoiles
86
Forks
59
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

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.

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.