question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

OAuth2 and refresh tokens

See original GitHub issue

@ej2

Does python-quickbooks support refreshing the access_token? Neither README nor the code mention anything like that.

For now, OAuth2 example from README work for 1 hour, then access_token invalidates. Could you please update README with an example on how to refresh access?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
Brian-CLOcommented, Dec 4, 2017

I ended up adding this functionality myself. It was pretty straightforward. I’m happy to contribute it back if anyone is interested.

0reactions
ej2commented, Oct 18, 2018

Refresh token has been added to the Oauth2 session manager. See the readme for details.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Understanding Refresh Tokens - Auth0
To solve this problem, OAuth 2.0 introduced an artifact called a refresh token. A refresh token allows an application to obtain a new...
Read more >
Refresh Tokens - OAuth 2.0 Simplified
When the refresh token changes after each use, if the authorization server ever detects a refresh token was used twice, it means it...
Read more >
OAuth 2.0 Refresh Token Best Practices - Fusebit
A refresh token is used to get a new non-expired access token with the same credentials. Your application shouldn't request additional scopes ...
Read more >
OAuth 2.0 - Refresh Token - Tutorialspoint
The lifetime of a refresh token is much longer compared to the lifetime of an access token. · Refresh tokens can also expire...
Read more >
Why Does OAuth v2 Have Both Access and Refresh Tokens?
The lifetime of a refresh token is up to the (AS) authorization server — they can expire, be revoked, etc. The difference between...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found