mirror of
https://github.com/OAuthSwift/OAuthSwift.git
synced 2026-04-26 12:45:52 +03:00
[GH-ISSUE #539] OAuth1Swift doesn't support signature method on token request #357
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#357
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 @nrivard on GitHub (Aug 13, 2019).
Original GitHub issue: https://github.com/OAuthSwift/OAuthSwift/issues/539
Description:
OAuth1Swift isn't properly filling out the
Authorizationheader and doesn't support signature method on the initial token requestThe RFC calls for signing the initial unauthorized token request:
https://oauth.net/core/1.0a/#auth_step1
The most sane approach in my opinion is to get rid of the conveniences on
OAuthSwiftClientand instead pass in an instance ofOAuthSwift:This object has the URLs, etc. that are necessary and then we can attach signature method, etc. to it. In addition, it might be wise to refactor the
Authorizationheader generation out of the credential as we don't yet have a credential when making the initial request.OAuth Provider? (Twitter, Github, ..):
Discogs
OAuth Version:
OS (Please fill the version) :
Installation method:
Library version:
Xcode version:
11.x (Swift 5.1)
10.x (Swift 5.0)
10.x (Swift 4.1)
9.3 (Swift 4.1)
9.0 (Swift 4.0)
other: (Please fill in the version you are using.)
objective c