mirror of
https://github.com/OAuthSwift/OAuthSwift.git
synced 2026-04-26 20:55:57 +03:00
[PR #576] [CLOSED] If the client_secret is empty, don't post it at all. #676
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#676
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/576
Author: @bobspryn
Created: 3/5/2020
Status: ❌ Closed
Base:
master← Head:master📝 Commits (1)
8c982e6If the client_secret is empty, don't post it at all.📊 Changes
1 file changed (+12 additions, -4 deletions)
View changed files
📝
Sources/OAuth2Swift.swift(+12 -4)📄 Description
Really we shouldn't be storing a client secret in an app at all, we should be using
PKCE. Some servers will reject the request if it's a "public" app and you include
the secret. Since it would be tricky to fully make it optional in the client everywhere,
I'm changing it to just ignore empty strings.
I didn't do this everywhere, as the other methods seem to assume the client/secret credentials are being used instead of pkce.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.