mirror of
https://github.com/OAuthSwift/OAuthSwift.git
synced 2026-04-26 12:45:52 +03:00
[GH-ISSUE #625] Allow omitting client_secret when refreshing token obtained via PKCE #407
Labels
No labels
bug
cocoapod
duplicate
enhancement
feature-request
help wanted
help wanted
invalid
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/OAuthSwift#407
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 @kdembler on GitHub (Sep 23, 2020).
Original GitHub issue: https://github.com/OAuthSwift/OAuthSwift/issues/625
Description:
When using PKCE flow for authentication, the client secret shouldn't be used in any way. This is taken into account when calling
authorize- the secret is skipped in the parameters. However, this isn't a case forrenewAccessToken- this code will always try to include client secret in the parameters, even if it's empty. Some providers (Spotify for sure) will then reject refresh requests due to invalid (empty) client secret.To allow easy PKCE flow integration,
renewAccessTokenshould allow omitting the client secret in the refresh request.OAuth Provider
Spotify
OAuth Version
Version 2 - PKCE
OS
macOS 10.15
Installation method:
Carthage
Library version:
Head
Xcode version:
11.4 (Swift 5.2)