mirror of
https://github.com/OAuthSwift/OAuthSwift.git
synced 2026-04-26 12:45:52 +03:00
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#696
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/OAuthSwift/OAuthSwift/pull/633
Author: @paullalonde
Created: 11/14/2020
Status: ✅ Merged
Merged: 5/5/2021
Merged by: @phimage
Base:
master← Head:issue-625-fix📝 Commits (4)
e903aebadd consumer secret conditionally to parameters10973f2make change consistent with existing code7d5ba2cclear current access token before renewing881c0bafix indentation📊 Changes
1 file changed (+9 additions, -1 deletions)
View changed files
📝
Sources/OAuthSwiftClient.swift(+9 -1)📄 Description
This MR fixes a few issues I've come across while interacting with AWS Cognito with a PKCE flow.
First, this fixes the Allow omitting client_secret when refreshing token obtained via PKCE issue. In PKCE flows, there is no client secret, so it doesn't make sense to send it to the authorization server. The client secret is currently omitted when obtaining the initial access token, but not when refreshing it.
Second, this change prevents the current (expired) access token from being sent in the refresh token request, which causes AWS Cognito to reject the request. Plus, as a matter of logic, it doesn't make much sense to send an expired token to an authorization server.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.