mirror of
https://github.com/OAuthSwift/OAuthSwift.git
synced 2026-04-26 12:45:52 +03:00
[GH-ISSUE #104] OAuth2 - client_id != consumer_key ... #69
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#69
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 @peteclark3 on GitHub (Sep 14, 2015).
Original GitHub issue: https://github.com/OAuthSwift/OAuthSwift/issues/104
It seems like your oauth2 code doesn't distinguish between the consumer_key and the client_id. I am trying to use it against Fitbit's oauth2 implementation and because your code treats them as one and the same, I either get an "invalid client_id" error or an "invalid consumer_key" error.
Any plans to distinguish between the two?
@phimage commented on GitHub (Nov 9, 2015):
For OAuth version 2 only
client_idis used by this framework event if the variable is named consumer_key (also named client consumer key, client key sometimes)see
So if you use OAuth version 2 , use the "Oauth2 client id" into
consumerKeyattributeOnly for OAuth version 1, consumer_key is used with this name for authentification header
The name is the same just to factorize code between the two class
You can comment, I will reopen the issue if necessary
or see #139