Swift based OAuth library for iOS
Some fix for tvOS compatibility
Big breaking change on callback closure!
Result
type is now used to merge the success and failure closure into one.
oauthswift.authorize(..) { result in
switch result {
case .success(let (credential, response, parameters)):
// do something
case .failure(let error):
// do something
}
}
oauthswift.client.get(...) { result in
switch result {
case .success(let response):
// do something
case .failure(let error):
// do something
}
}
You can use the previous version 1.4.x if you do not want to upgrade your code
Revert change for #522
authorizeURLHandler
.weak()
on your OAuthSwiftURLHandlerType
swift 5 @alex-taffe Add Safari views for iOS 11+ @SMillerDev
Fix #492 : option useRFC3986ToEncodeToken on OAutSwift1
Fix #509 : change on error domain, no more use of URLErrorDomain
Fix #522 : now authorizeURLHandler
attribute are "weak" to break cycle -> you must retain your object elsewhere to not be deallocated
encodeCallbackURL
to oauth 2 to URL encore callback URL. Seems to be needed for some services issue #339, pr #325presentViewControllerAnimated
variable added by @felipeflorencioaddCallbackURLToAuthorizeURL
field of OAuth1Swift , as requested by PR #373init
without URL parameters @josephquigleyparameters
parameter to renewAccessToken @wesley-dynamicowlOAuthSwiftResponse
, which contains the Data
, the HTTPURLResponse
and URLRequest
OAuthSwiftResponse
to use some JSON decoded like SwiftyJSON
or any object mapperOAuthSwiftError
implement CustomNSError
protocol