[GH-ISSUE #637] Add authorization data to Request Body/Request URL option #418

Closed
opened 2026-03-03 16:48:32 +03:00 by kerem · 1 comment
Owner

Originally created by @PiotrFurmanski on GitHub (Dec 3, 2020).
Original GitHub issue: https://github.com/OAuthSwift/OAuthSwift/issues/637

Description:

Hi, I am using POSTMAN to execute a GET OAuth1 request from woocommerce. It works nicely in Postman but only if use Add authorization data to Request Body/Request URL, and not when add authorization data to request headers
See here

https://user-images.githubusercontent.com/2772980/60738032-20a57500-9f5d-11e9-8c6b-fda081db7a41.png

Is it possible to configure oauthswift to add authorization data to body ?

OAuth Provider? (Twitter, Github, ..):

woocommerce

OAuth Version:

  • Version 1
  • Version 2

OS (Please fill the version) :

  • iOS :
  • OSX :
  • TVOS :
  • WatchOS :

Installation method:

  • Carthage
  • CocoaPods
  • Swift Package Manager
  • Manually

Library version:

  • head
  • v2.1.0
  • v2.0.0
  • v1.4.1
  • other: (Please fill in the version you are using.)

Xcode version:

  • 11.4 (Swift 5.2)

  • 11.x (Swift 5.1)

  • 10.x (Swift 5.0)

  • other: (Please fill in the version you are using.)

  • objective c

Originally created by @PiotrFurmanski on GitHub (Dec 3, 2020). Original GitHub issue: https://github.com/OAuthSwift/OAuthSwift/issues/637 ### Description: Hi, I am using POSTMAN to execute a GET OAuth1 request from woocommerce. It works nicely in Postman but only if use Add authorization data to Request Body/Request URL, and not when add authorization data to request headers See here https://user-images.githubusercontent.com/2772980/60738032-20a57500-9f5d-11e9-8c6b-fda081db7a41.png Is it possible to configure oauthswift to add authorization data to body ? ### OAuth Provider? (Twitter, Github, ..): woocommerce ### OAuth Version: - [x] Version 1 - [ ] Version 2 ### OS (Please fill the version) : - [x] iOS : - [ ] OSX : - [ ] TVOS : - [ ] WatchOS : ### Installation method: - [ ] Carthage - [x] CocoaPods - [ ] Swift Package Manager - [ ] Manually ### Library version: - [ ] head - [ ] v2.1.0 - [x] v2.0.0 - [ ] v1.4.1 - [ ] other: (Please fill in the version you are using.) ### Xcode version: - [x] 11.4 (Swift 5.2) - [ ] 11.x (Swift 5.1) - [ ] 10.x (Swift 5.0) - [ ] other: (Please fill in the version you are using.) - [ ] objective c
kerem closed this issue 2026-03-03 16:48:32 +03:00
Author
Owner

@PiotrFurmanski commented on GitHub (Dec 3, 2020):

ok I've found resolution
oauthswift.client.paramsLocation = .requestURIQuery

<!-- gh-comment-id:738239128 --> @PiotrFurmanski commented on GitHub (Dec 3, 2020): ok I've found resolution oauthswift.client.paramsLocation = .requestURIQuery
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/OAuthSwift#418
No description provided.