[GH-ISSUE #444] How to use a client certificate (crt) with oAuthSwift on iOS ? #290

Closed
opened 2026-03-03 16:47:25 +03:00 by kerem · 2 comments
Owner

Originally created by @fvvliet on GitHub (Mar 13, 2018).
Original GitHub issue: https://github.com/OAuthSwift/OAuthSwift/issues/444

Description:

OAuth Provider (Twitter, Github, ..):

OAuth Version:

  • Version 1
  • [ x] Version 2

OS (Please fill the version) :

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

Installation method:

  • Carthage
  • [ x] CocoaPods
  • Manually

Library version:

  • head
  • v1.2 (Swift 4.0)
  • v1.0.0
  • v0.6
  • other: (Please fill in the version you are using.)

Xcode version:

  • [x ] 9.0 (Swift 4.0)

  • 9.0 (Swift 3.2)

  • 8.x (Swift 3.x)

  • 8.0 (Swift 2.3)

  • 7.3.1

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

  • objective c

I have to include a client certificate (.crt) to communicate with the oAuth server of a customer. Is this possible with oAuthSwift framework ? Can anyone point me to an explanation / example code how to do this ?

Thanks for your advice
Frank

Originally created by @fvvliet on GitHub (Mar 13, 2018). Original GitHub issue: https://github.com/OAuthSwift/OAuthSwift/issues/444 ### Description: ### OAuth Provider (Twitter, Github, ..): ### OAuth Version: - [ ] Version 1 - [ x] Version 2 ### OS (Please fill the version) : - [x] iOS : - [ ] OSX : - [ ] TVOS : - [ ] WatchOS : ### Installation method: - [ ] Carthage - [ x] CocoaPods - [ ] Manually ### Library version: - [ ] head - [ ] v1.2 (Swift 4.0) - [ ] v1.0.0 - [ ] v0.6 - [ ] other: (Please fill in the version you are using.) ### Xcode version: - [x ] 9.0 (Swift 4.0) - [ ] 9.0 (Swift 3.2) - [ ] 8.x (Swift 3.x) - [ ] 8.0 (Swift 2.3) - [ ] 7.3.1 - [ ] other: (Please fill in the version you are using.) - [ ] objective c I have to include a client certificate (.crt) to communicate with the oAuth server of a customer. Is this possible with oAuthSwift framework ? Can anyone point me to an explanation / example code how to do this ? Thanks for your advice Frank
kerem closed this issue 2026-03-03 16:47:26 +03:00
Author
Owner

@phimage commented on GitHub (Mar 22, 2018):

OAuthSwift use standard network layer and default URLSessionConfiguration
see URLSessionFactory code

what you want to achieve is ssl pinning
https://infinum.co/the-capsized-eight/how-to-make-your-ios-apps-more-secure-with-ssl-pinning

OAuthSwift is not the place to discuss about that
Feel free to open issue if there is some problem to do it specifically with OAuthSwift due to framework implementation

<!-- gh-comment-id:375366467 --> @phimage commented on GitHub (Mar 22, 2018): OAuthSwift use standard network layer and default URLSessionConfiguration see URLSessionFactory code what you want to achieve is ssl pinning https://infinum.co/the-capsized-eight/how-to-make-your-ios-apps-more-secure-with-ssl-pinning OAuthSwift is not the place to discuss about that Feel free to open issue if there is some problem to do it specifically with OAuthSwift due to framework implementation
Author
Owner

@fvvliet commented on GitHub (Mar 22, 2018):

Thank you for the link !!
Frank

<!-- gh-comment-id:375391813 --> @fvvliet commented on GitHub (Mar 22, 2018): Thank you for the link !! Frank
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#290
No description provided.