A collection of Rust crates for interacting with the iNaturalist API.

inaturalist-oauth: custom redirect URIs and token renewal #30

Merged rwell.org
targeting main from oauth-redirect-uri
Merged opened by and assigned to rwell.org
targeting main from oauth-redirect-uri
  • with_redirect_uri sets the redirect URI for applications that receive the redirect themselves. It was always http://localhost:<port>.
  • TokenDetails includes the OAuth2 access token, and the new api_token function exchanges one for an API token, so an application can replace an expired API token without sending the user through authorization.

TokenDetails gains a field, which breaks code that constructs it.

Split from #6.

Commits 0