Skip to content

Releases: OAuthSwift/OAuthSwift

2.2.0

20 May 21:49
d85964b
Compare
Choose a tag to compare

✨ Features

🐛 Bug Fixes

🎲 Misc

2.1.2

02 May 19:52
Compare
Choose a tag to compare

Some fix for tvOS compatibility

2.1.1

30 Apr 17:10
Compare
Choose a tag to compare
Fix some swiftlint warnings

2.1.0 `Catalyst`

01 Nov 22:35
Compare
Choose a tag to compare
  • Support of macCatalyst, add ASWebAuthenticationURLHandler @nrivard
  • Fix some deprecation warnings

demo app

  • add twitch to demo app @coolioxlr
  • add ASWebAuthenticationURLHandler to demo app
  • demo app tested with macCatalyst
  • better with dark mode
  • use WKWebView instead of deprecated UIWebView

2.0.1 SwiftPM

01 Nov 22:37
c8aae01
Compare
Choose a tag to compare

2.0.0`Result`

10 Jun 20:57
a471698
Compare
Choose a tag to compare

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

1.4.1

10 Jun 20:08
Compare
Choose a tag to compare

Revert change for #522

  • no need to retain authorizeURLHandler
  • but to break memory cycle you can call .weak() on your OAuthSwiftURLHandlerType

1.4.0

10 Jun 19:34
f8aede8
Compare
Choose a tag to compare

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

1.1.2

04 Jun 10:33
Compare
Choose a tag to compare

New

  • add encodeCallbackURL to oauth 2 to URL encore callback URL. Seems to be needed for some services issue #339, pr #325
  • in SafariURLHandler presentViewControllerAnimated variable added by @felipeflorencio
  • Optionally add callback URL to authorize URL using addCallbackURLToAuthorizeURL field of OAuth1Swift , as requested by PR #373
  • add NounProject and Digu to demo app

Change

Fix

  • Do not send oauth_verifier query parameter if not necessary ie. if allowMissingOAuthVerifier=true, Fix #334
  • Fix a crash when encoding credentials in a test target @eunikolsky

1.1.1

26 Feb 10:36
Compare
Choose a tag to compare

Change

  • Now success Handler return a OAuthSwiftResponse, which contains the Data, the HTTPURLResponse and URLRequest
    • On this object you can get decoded json object, string value, ...
    • You can extends OAuthSwiftResponse to use some JSON decoded like SwiftyJSON or any object mapper
  • If there is some problem to encode URL with OAuth2, "handle" is not returned (request is cancelled)

New

  • OAuthSwiftError implement CustomNSError protocol
  • Ability to specify body data for POST request
  • Add wordpress in demo

Fix

  • Fix multipart request with some parameter #287 @ktakayama
  • Fix OAuthSwiftCredential.Version init(:) error @bzmario