mirror of
https://github.com/ramsayleung/rspotify.git
synced 2026-04-26 07:55:55 +03:00
[GH-ISSUE #419] 0.11.17 breaks PKCE auth #139
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#139
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?
Originally created by @jacobmichels on GitHub (May 30, 2023).
Original GitHub issue: https://github.com/ramsayleung/rspotify/issues/419
Describe the bug
prompt_for_tokenpanics after inputting the redirect url from the browser. The logs reveals that the http client sent a request to /api/token but received a 400 response. The response body states that the code_verifier was not correct. This issue is not present in 0.11.6 or 0.11.5.To Reproduce
Steps to reproduce the behavior:
Expected behavior
prompt_for_tokencorrectly formulates the request for the access token as it does before v0.11.7Log/Output data
@jacobmichels commented on GitHub (May 30, 2023):
I think I found the issue. In auth_code_pkre.rs
The challenge code is being encoded as plain base64 when it should be encoded as base64url safe. I believe this bug was introduced when the base64 dependency had its version bumped from 0.13 to 0.20 in this commit. I'll open a PR to fix this