Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add auto-refreshing access tokens to iNatClient #233

Closed
Tracked by #217
JWCook opened this issue Jul 31, 2021 · 0 comments · Fixed by #235
Closed
Tracked by #217

Add auto-refreshing access tokens to iNatClient #233

JWCook opened this issue Jul 31, 2021 · 0 comments · Fixed by #235
Labels
enhancement New feature or request
Milestone

Comments

@JWCook
Copy link
Member

JWCook commented Jul 31, 2021

There should be two ways to authenticate with iNatClient:

  • Manually pass a token generated with get_access_token() (same as existing request functions)
  • If creds are specified in environment variables, keyring, or as iNatClient args, automatically get and refresh tokens as needed

Related: #148. requests-oauthlib may be helpful here, but note that both this and requests-cache extend requests.Session and will need to be combined into a third custom session class.

@JWCook JWCook mentioned this issue Jul 31, 2021
23 tasks
@JWCook JWCook added the enhancement New feature or request label Jul 31, 2021
@JWCook JWCook changed the title Add client authentication support Add iNatClient authentication features Jul 31, 2021
@JWCook JWCook added this to the v0.15 milestone Jul 31, 2021
@JWCook JWCook changed the title Add iNatClient authentication features Add auto-refreshing access tokens to iNatClient Aug 1, 2021
@JWCook JWCook modified the milestones: v0.15, v1.0 Sep 2, 2021
@JWCook JWCook modified the milestones: v1.0, v1.1 Mar 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant