intuit / intuit/oauth-pythonclient

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

Aperta Adatta ai principianti
#56 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Python
Stelle
86
Fork
59
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
python
Ambito
authentication
Tipo di issue
Funzionalità
Difficoltà
2/5
Tempo stimato
1-3 ore
Stato di attività
Tranquilla
Chiarezza
Abbastanza chiara
Idoneità per principianti
72/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.