mirror of
https://github.com/OAuthSwift/OAuthSwift.git
synced 2026-04-26 12:45:52 +03:00
[GH-ISSUE #246] No encoding the auth_token for authorize #139
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#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 @ElvisYang on GitHub (Jun 29, 2016).
Original GitHub issue: https://github.com/OAuthSwift/OAuthSwift/issues/246
in https://github.com/OAuthSwift/OAuthSwift/blob/master/OAuthSwift/OAuth1Swift.swift#L87
do not encoding the oauth_token
"oauth_token=(credential.oauth_token)", when it contains just like
&,+.....For example
credential.oauth_token.urlEncodedStringWithEncoding(OAuthSwiftDataEncoding)@phimage commented on GitHub (Jul 7, 2016):
Ok I think you are right, there is an encoding problem
But I will use
urlQueryEncodedto encode based onNSCharacterSet.URLQueryAllowedCharacterSet()