mirror of
https://github.com/OAuthSwift/OAuthSwift.git
synced 2026-04-26 12:45:52 +03:00
[GH-ISSUE #628] Withings OAuth2 not working #409
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#409
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 @rowellx68 on GitHub (Oct 21, 2020).
Original GitHub issue: https://github.com/OAuthSwift/OAuthSwift/issues/628
Description:
Withings has since moved to OAuth2 and they have since added a required parameter for all endpoints. This causes the the auth to fail since we are not providing
actionwhen we request the access token.As per the new docs, we need to provide
requesttokento theactionparameter. This is on top of what is already provided.What is the best way to customise this section?
OAuth Provider? (Twitter, Github, ..):
Withings
OAuth Version:
OS (Please fill the version) :
Installation method:
Library version:
Xcode version:
11.4 (Swift 5.2)
11.x (Swift 5.1)
10.x (Swift 5.0)
other: 12
objective c
@phimage commented on GitHub (Nov 10, 2020):
I see nothing the with current code
you could subclass and override
postOAuthAccessTokenWithRequestTokenand copy all code (I expect all is public)
if not or to do a better job all code from postOAuthAccessTokenWithRequestToken except the last line could be extracted to
parametersForPostOAuthAccessTokenWithRequestToken() -> OAuthSwift.Parameters()and then you could also subclass and override only this function, call the super and add only your new attribute
or just a function(need override class too) or closure to customise it