[GH-ISSUE #595] Bug: Authorization Header is ignored #387

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

Originally created by @BJAdeGraaf on GitHub (May 11, 2020).
Original GitHub issue: https://github.com/OAuthSwift/OAuthSwift/issues/595

Description:

The custom header is getting ignored when authorizing. It seems it uses the default header [:].
For instance, I can't request "full access" with headers: ["Access": "Full"], because it doesn't end up in the authorization URL.

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

SmugMug

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 @BJAdeGraaf on GitHub (May 11, 2020). Original GitHub issue: https://github.com/OAuthSwift/OAuthSwift/issues/595 ### Description: The custom header is getting ignored when authorizing. It seems it uses the default header `[:]`. For instance, I can't request "full access" with `headers: ["Access": "Full"]`, because it doesn't end up in the authorization URL. ### OAuth Provider? (Twitter, Github, ..): SmugMug ### OAuth Version: - [x] Version 1 - [ ] Version 2 ### OS (Please fill the version) : - [ ] iOS : - [x] OSX : - [ ] TVOS : - [ ] WatchOS : ### Installation method: - [ ] Carthage - [ ] CocoaPods - [x] Swift Package Manager - [ ] Manually ### Library version: - [x] head - [ ] v2.1.0 - [ ] 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:16 +03:00
Author
Owner
<!-- gh-comment-id:628341060 --> @phimage commented on GitHub (May 14, 2020): please debug and provide more information https://github.com/OAuthSwift/OAuthSwift/blob/master/Sources/OAuth1Swift.swift#L99 https://github.com/OAuthSwift/OAuthSwift/blob/master/Sources/OAuth1Swift.swift#L160 https://github.com/OAuthSwift/OAuthSwift/blob/master/Sources/OAuth1Swift.swift#L193
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#387
No description provided.