mirror of
https://github.com/ramsayleung/rspotify.git
synced 2026-04-26 07:55:55 +03:00
[PR #238] [CLOSED] Attempt 1 at simplifying the token reauth #332
Labels
No labels
Stale
bug
discussion
enhancement
good first issue
good first issue
help wanted
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/rspotify#332
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ramsayleung/rspotify/pull/238
Author: @marioortizmanero
Created: 8/7/2021
Status: ❌ Closed
Base:
master← Head:refresh-token-simpler📝 Commits (10+)
092b153Change function signature ofget_tokenandget_token_mutto async.21a9339Change the function signature ofget_tokenandget_token_mutbdbf3efRemovemutfromget_token_mut.b8a6abdRemovemutfromrequest_tokenandrefresh_tokenc54ec04Automatically re-authenticate.03050a0Optimze get_token flow.c50c2ddAdd a new functionauto_reauthfor OAuthClient trait.04c88b8Fix compile error.b97552cwebapp example upgrade rocket to 0.5c563f5dupdate refresh-token.rs.📊 Changes
17 files changed (+462 additions, -124 deletions)
View changed files
📝
CHANGELOG.md(+3 -1)📝
Cargo.toml(+10 -0)📝
examples/oauth_tokens.rs(+6 -3)➕
examples/ureq/threading.rs(+45 -0)📝
examples/webapp/Cargo.toml(+3 -3)📝
examples/webapp/src/main.rs(+37 -36)➕
examples/with_auto_reauth.rs(+109 -0)📝
examples/with_refresh_token.rs(+7 -4)📝
src/auth_code.rs(+43 -23)📝
src/auth_code_pkce.rs(+48 -16)📝
src/client_creds.rs(+38 -12)📝
src/clients/base.rs(+69 -12)📝
src/clients/mod.rs(+3 -3)📝
src/clients/oauth.rs(+14 -5)📝
src/lib.rs(+22 -1)📝
tests/test_oauth2.rs(+4 -4)📝
tests/test_with_oauth.rs(+1 -1)📄 Description
This is a WIP attempt to simplify the code at #224
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
RestrictionReason#401