intuit / intuit/oauth-pythonclient

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

Ouverte Adaptée aux débutants
#56 0 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

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.

Guide de contribution

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

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
python
Domaine
authentication
Type d'issue
Fonctionnalité
Difficulté
2/5
Temps estimé
1-3 heures
Activité
Calme
Clarté
Plutôt claire
Accessibilité débutants
72/100

Recevez les nouvelles issues par e-mail

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