mirror of
https://github.com/OAuthSwift/OAuthSwift.git
synced 2026-04-26 12:45:52 +03:00
[PR #657] [MERGED] 🐛 Encode signature parameters when using PLAINTEXT format #706
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#706
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/657
Author: @phatblat
Created: 5/18/2021
Status: ✅ Merged
Merged: 5/18/2021
Merged by: @phimage
Base:
master← Head:encode-signature📝 Commits (2)
51b8570🐛 Encode oauth_signature parameters2a41a37🚨 Fix trailing whitespace📊 Changes
4 files changed (+4 additions, -5 deletions)
View changed files
📝
Sources/Handler/ASWebAuthenticationURLHandler.swift(+0 -1)📝
Sources/OAuth1Swift.swift(+2 -2)📝
Sources/OAuthSwiftCredential.swift(+1 -1)📝
Sources/OAuthSwiftHTTPRequest.swift(+1 -1)📄 Description
Handling for the PLAINTEXT signature format was added in #623. However, the values used were not the
urlEncodedvalues and thus could cause issues if one of those values contained unsupported characters.This PR adds encoding to these values.
References
RFC-5849 section 3.4.4: PLAINTEXT
RFC-5849 section 3.6: Percent Encoding
TL;DR: Special URL percent encoding for the Authorization header.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.