mirror of
https://github.com/OAuthSwift/OAuthSwift.git
synced 2026-04-26 20:55:57 +03:00
[GH-ISSUE #42] OAuth1 signature error (HMAC & SHA1) #24
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#24
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 @ramki1979 on GitHub (Apr 6, 2015).
Original GitHub issue: https://github.com/OAuthSwift/OAuthSwift/issues/42
I manually included all files in my project target for iOS 7, and when I try to log into linkedin I got a Signature Invalid exception. After debugging The base string is correct but the signature generated is wrong.
OAuthSwift implemented its own HMAC and SHA1 algorithms, so I don't see I have to include any additional crypto libraries.
Am I missing any project settings or libraries/frameworks.
@gabriel-jones commented on GitHub (Apr 6, 2015):
Could you show us your signed url? Also, have you fixed the errors in the project shown in issue #31 ?
@ramki1979 commented on GitHub (Apr 6, 2015):
I use this online tool for signature verification:
http://oauth.googlecode.com/svn/code/javascript/example/signature.html
I have developed my own oauth1 and oauth2 libraries in C [used opensource HMAC-sha1] for another mobile platform a couple of years back, so I am very well aware of OAuth 1 & 2 specs.
As the same is working for other users, I feel I might missed some swift knowledge or settings here.
#31 I have updated my comment with correct fork that builds for ios 7.
@ramki1979 commented on GitHub (Apr 7, 2015):
This issue is related to OAuthSwift fork https://github.com/WazzeZ/OAuthSwift,
The signature key is set incorrectly,
The forks has the below code
Fix:
closing this issue.