mirror of
https://github.com/OAuthSwift/OAuthSwift.git
synced 2026-04-26 12:45:52 +03:00
[GH-ISSUE #334] Setting allowMissingOAuthVerifier fails OAuth1 requests #208
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#208
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 @galiak11 on GitHub (Feb 8, 2017).
Original GitHub issue: https://github.com/OAuthSwift/OAuthSwift/issues/334
Description:
oauth_verifieris not always ignored whenallowMissingOAuthVerifieris set to true, causing oauth1access_tokenrequests to fail.OAuth Provider (Twitter, Github, ..):
Any Oauth Provider that doesn't use a verifier. Example: Bynder.com.
OAuth Version:
OS (Please fill the version) :
Installation method:
Library version:
Xcode version:
8.0 (Swift 3.0)
8.0 (Swift 2.3)
7.3.1
other: (Please fill in the version you are using.)
objective c
Suggested fix
The assignment to:
parameters["oauth_verifier"]in the method:OAuth1Swift.postOAuthAccessTokenWithRequestToken(success:failure:)must be wrapped in a condition:@phimage commented on GitHub (Feb 8, 2017):
I am ok with the suggested fix
event if your oauth provider(bynder) is a little too strict, it do not allow to add additional query parameters
I will commit but next time do not hesitate to create a pull request
thanks