mirror of
https://github.com/OAuthSwift/OAuthSwift.git
synced 2026-04-26 12:45:52 +03:00
[GH-ISSUE #140] OAuth1 exchange fails due token secret being URL encoded. #85
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#85
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 @pculligan on GitHub (Nov 9, 2015).
Original GitHub issue: https://github.com/OAuthSwift/OAuthSwift/issues/140
In using the OAuth1 provider via the OAuthSwiftDemo the initial token request works, but once the credential's
oauth_token_secretis assigned, all signatures fail.Step 1: Request token
Note that there is no token at this stage, so the signature is fine, and we get a token and secret back.
When we try to authorize during step 2 however, I get a 401, constantly. After tracing, I found that in the OAuth1Swift.swift file the method takes the callback URL directly.
Within the method, the QueryString is parsed by the
parametersFromQueryStringmethod intoparameters.However these are used directly, never decoded in either the
postOAuthRequestTokenWithCallbackURLorpostOAuthAccessTokenWithRequestTokenmethods.I have a local edit that tests out and will submit a PR shortly.