mirror of
https://github.com/OAuthSwift/OAuthSwift.git
synced 2026-04-26 12:45:52 +03:00
[GH-ISSUE #515] Setting Content-Type header for OAuth1 #337
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#337
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 @csauvage on GitHub (Feb 17, 2019).
Original GitHub issue: https://github.com/OAuthSwift/OAuthSwift/issues/515
Description:
Issue while authorizing
OAuth Provider? (Twitter, Github, ..):
Clever-cloud
📖Docs : https://www.clever-cloud.com/doc/api/
OAuth Version:
OS (Please fill the version) :
Installation method:
Library version:
Xcode version:
Issue
I got an error 500 while authorizing
Solving tip
It seems that it's linked to the header
Content-Typeof therequestTokenUrlrequest. It doesn't have theapplication/x-www-form-urlencodedrequired value. Where to set this header ?Moreover @phimage : Analysing the request on Charles, it seems that the body of the resquest is empty
Any help will be appreciated ! Stucking around for a while now :/
@phimage commented on GitHub (Feb 18, 2019):
There is an header optional parameter
But for Content-type I never tested it
@csauvage commented on GitHub (Feb 18, 2019):
Triggers a compilation error :
@phimage there's no such signature in https://github.com/OAuthSwift/OAuthSwift/blob/master/Sources/OAuth1Swift.swift source file.
Thanks in advance for your help.
@phimage commented on GitHub (Feb 19, 2019):
there is no network call when you initialize the object, you must use authorize
maybe there is nothing for oauth1 because this is not standard
for oauth 2 there is an header parameters https://github.com/OAuthSwift/OAuthSwift/blob/master/Sources/OAuth2Swift.swift#L83
for a PR could be done to add it
@csauvage commented on GitHub (Feb 20, 2019):
Yeah, of course, I mean doing this don't produce a request body
And I'm talking of oAuth, will see if I can PR
@csauvage commented on GitHub (Feb 22, 2019):
Made #517 to fix the last method with header. It didn’t goes though CI. I guess you haven’t exposed Danger API Key.