Repository navigation
Conversation
* master: Add into demo code example for safari handler factory OAuthSwift#386 Update README.md Fix memory leak due to strong reference of controller readme/atlassian # Conflicts: # README.md
| // MARK: Jira | ||
| func doOAuthJira(_ serviceParameters: [String:String]){ | ||
| assert(Bundle.main.path(forResource: "private", ofType: "pem") != nil, "Jira authentication uses RSA-SHA1 which requires a stighlty different setup - see README.md for details.") | ||
| let oauthswift = OAuth1Swift.initWithRSA( |
There was a problem hiding this comment.
could add something like that
let jiraURL = serviceParameters["url"] ?? "https://yourinstance.atlassian.net"and then use it in the following code, allowing to use in config file a custom url
| // | ||
|
|
||
| import Foundation | ||
| import SwiftyRSA |
There was a problem hiding this comment.
So OAuthSwift become dependant on SwiftyRSA
So OAuthSwift.podspec and Package.swift must be updated
But for carthage a Cartfile must be created, and see the comment on Podfile
| platform :ios, '8.3' | ||
| pod 'SwiftyRSA', '~> 1.2.0' | ||
| end | ||
|
|
There was a problem hiding this comment.
By becoming dependant and make OAuthSwift target dependant on this I suspect that the project file has been updated to work only with cocoapod
So opening the projet without the workspace will failed
And then Carthage could not work.
I could do the fix later
Then for macOS? :p
|
|
||
| public enum Version { | ||
| case oauth1, oauth2 | ||
| case oauth1, oauth1RSA, oauth2 |
There was a problem hiding this comment.
After merging I will do some change, try to remove this case oauth1RSA
by cutting the link between version and signature or use oauth1(SignatureMethod)
|
I make some change in last version allowing to make dependencies injection. The class then to inject OAuthSwiftCredential.SignatureMethod.delegates[.RSA_SHA1: RSA.Type)So a new project |
This adds OAuth1 SHA1-RSA and Jira support