Skip to content

Latest commit

 

History

History
436 lines (294 loc) · 21.1 KB

CHANGELOG.md

File metadata and controls

436 lines (294 loc) · 21.1 KB

Change Log

1.13.0 (2018-09-17)

Full Changelog

Fixed

1.12.0 (2018-07-26)

Full Changelog

Added

  • Added support for custom Keychain key in Credentials Manager #208 (danielphillips)
  • Enable Credentials Manager for tvOS and Mac Platforms #206 (cocojoe)

Fixed

1.11.1 (2018-06-08)

Full Changelog

Added

  • Added optional paramaters to login API #199 (akiroz)

1.11.0 (2018-05-11)

Full Changelog

Added

Changed

  • Updates Xcode 9.3 settings, dependencies #195 (cocojoe)

1.10.1 (2018-03-08)

Full Changelog

Fixed

  • Fixed client ID and redirect URL query items not being passed in nonfederated clearSession() #188 (Rypac)

1.10.0 (2018-01-05)

Full Changelog

Changed

1.9.2 (2017-11-17)

Full Changelog

Fixed

  • Fixed Federated param in logoutURL iOS 11+ #171 (cocojoe)

1.9.1 (2017-10-20)

Full Changelog

Fixed

1.9.0 (2017-10-19)

Full Changelog

Added

  • Added SFAuthenticationSession support in iOS 11 #154 (cocojoe)

1.8.0 (2017-09-15)

Full Changelog

Changed

  • Updated Xcode 9 / Swift 3.2, Clean up for Swift 4 migration. #149 (cocojoe)

Fixed

1.7.2 (2017-09-11)

Full Changelog

Added

  • Added invalid_credentials check for /oauth/token #147 (cocojoe)

Fixed

  • Fixed - Ensure existing refreshToken returned in Credentials Manager #146 (cocojoe)

1.7.1 (2017-07-11)

Full Changelog

Added

  • Added credential manager methods clear and hasValid #133 (cocojoe)

1.7.0 (2017-06-26)

Full Changelog

Added

Changed

  • Use new SFSafariViewController init for iOS11 #125 (cocojoe)
  • Refactor deprecated Matcher protocol with Predicate protocol #117 (cocojoe)

Deprecated

  • Document Legacy Grant Types & Method deprecations #126 (cocojoe)

1.6.0 (2017-06-06)

Full Changelog

Added

  • Added WebAuth Auth0 Session Clear #115 (cocojoe)
  • Credentials support NSSecureCoding, CredentialsManager Utility, KeyChain Storage #113 (cocojoe)
  • Added method to revoke refresh tokens #111 (cocojoe)

Changed

Fixed

1.5.0 (2017-03-27)

Full Changelog

Added

  • Method to check native auth availability for provider in the device #104 (cocojoe)

1.4.0 (2017-03-16)

Full Changelog

Added

1.3.0 (2017-03-13)

Full Changelog

Added

  • Authentication can now create WebAuth instances for given connection #98 (cocojoe)
  • Added connection scopes to web auth #96 (hzalaz)

Changed

Fixed

  • Avoid WebAuth to retain UIApplication root ViewController #95 (cocojoe)

1.2.0 (2017-02-06)

Full Changelog

Added

  • Native Authentication support #86 (cocojoe)
  • Added SwiftLint to project #84 (cocojoe)
  • Profile timestamp to expect epoch, fallback to ISO8601 #83 (cocojoe)

Fixed

1.1.1 (2017-01-02)

Full Changelog

Fixed

  • Ensure state set correctly when set via parameters #77 (cocojoe)

1.1.0 (2016-12-16)

Full Changelog

Closed issues

  • Missing API #59
  • Delegation for Firebase #55

Added

  • Credentials exposes expires_in if returned after auth #72 (cocojoe)
  • Added grant type password realm support #71 (cocojoe)
  • Support refresh token authentication #69 (cocojoe)
  • Support for audience parameter for WebAuth #67 (cocojoe)
  • Multiple respone_type support #65 (cocojoe)
  • Support id_token response type #62 (cocojoe)

Changed

Deprecated

1.0.1 (2016-11-23)

Full Changelog

Fixed

1.0.0 (2016-10-06)

Full Changelog

Closed issues

  • Facebook Login web page does not redirect to the application at the first login #51

Fixed

  • Properly parse authorize response #56 (hzalaz)

1.0.0-rc.4 (2016-09-18)

Full Changelog

This version (and future ones) requires Xcode 8 and Swift 3. For Swift 2.3 please check the branch v1@swift-2.3

Closed issues:

Changed:

1.0.0-rc.3 (2016-09-14)

Full Changelog

Closed issues:

Changed:

  • Update for Swift 2.3 & Xcode 8 #46 (hzalaz)

1.0.0-rc.2 (2016-09-09)

Full Changelog

Changed:

Breaking changes:

The function enableLogging() was removed, so now to enable logging in the library you should enable it per-client instead of globally.

For Auth API

var auth = Auth0.authentication()
auth.logging(enabled: true)

For Users API

var users = Auth0.users(token: "token")
users.logging(enabled: true)

Also now you can provide a custom Logger to replace the default one (which just uses Swift print). It only needs to implement the protocol Logger

let logger = MyCustomLogger()
var auth = Auth0.authentication()
auth.usingLogger(logger)

1.0.0-rc.1 (2016-08-17)

Full Changelog

Added:

1.0.0-beta.7 (2016-07-29)

Full Changelog

Added:

Changed:

  • Improve error handling and Auth session management #39 (hzalaz)
  • Avoid using global telemetry. #38 (hzalaz)

1.0.0-beta.6 (2016-07-26)

Full Changelog

Added:

1.0.0-beta.5 (2016-06-30)

Full Changelog

Changed:

  • Renamed UserProfile to Profile #34 (hzalaz)

Breaking changes:

The UserProfile is not named Profile (in Objective C is A0Profile).

1.0.0-beta.4 (2016-06-30)

Full Changelog

Added:

  • Allow to override telemetry info #32 (hzalaz)

Fixed:

1.0.0-beta.3 (2016-06-20)

Full Changelog

Added:

  • Show better error when PKCE is not enabled in client #30 (hzalaz)
  • Auth0 telemetry information #29 (hzalaz)
  • Multifactor support for /oauth/ro #28 (hzalaz)

Changed:

  • Added parameter labels in Authentication API methods #27 (hzalaz)
  • Reworked Error handling #26 (hzalaz)

Breaking changes:

Most of the Authentication API methods first parameters labels are required so for example this call:

Auth0
    .login("mail@mail.com", password: "secret", connection: "connection")

now needs to have the usernameOrEmail parameter label

Auth0
    .login(usernameOrEmail: "mail@mail.com", password: "secret", connection: "connection")

Now all Result object return ErrorType instead of a specific error, this means that OS errors like no network, or connection could not be established are not wrapped in any Auth0 error anymore.

Also the error types that Auth0.swift API clients can return are no longer an enum but a simple object:

  • Authentication API: AuthenticationError
  • Management API: ManagementError

Each of them has it's own values according at what each api returns when the request fails. Now to handle Auth0.swift errors in your callback, you can do the following:

Auth0
    .login(usernameOrEmail: "mail@mail.com", password: "secret", connection: "connection")
    .start { result in
        switch result {
        case .Success(let credentials):
            print(credentials)
        case .Failure(let cause as AuthenticationError):
            print("Auth0 error was \(cause)")
        case .Failure(let cause):
            print("Unknown error: \(cause)")
        }
    }

Also, AuthenticationError has some helper methods to check for common failures:

Auth0
    .login(usernameOrEmail: "mail@mail.com", password: "secret", connection: "connection")
    .start { result in
        switch result {
        case .Success(let credentials):
            print(credentials)
        case .Failure(let cause as AuthenticationError) where cause.isMultifactorRequired:
            print("Need to ask the user for his mfa code!")
        case .Failure(let cause):
            print("Login failed with error: \(cause)")
        }
    }

1.0.0-beta.2 (2016-06-09)

Full Changelog

Added:

  • Authenticate a user using web-based authentication with Auth0, e.g. social authentication. (iOS Only) #19,#20 & #24 (hzalaz)
  • Load Auth0 clientId & domain from a plist file #21 (hzalaz)
  • Request Logging support #23 (hzalaz)

Fixed:

  • Date parsing format in UserProfile #22 (srna)

1.0.0-beta.1 (2016-05-25)

Full Changelog

Added:

  • Auth0 Authentication API endpoints, now you can use Auth0.swift to write your own login box.

Changed:

  • Dropped support for iOS 8
  • Reworked Swift API and updated to Swift 2.2
  • Removed Alamofire as dependency, all networking is done with NSURLSession directly
  • Request callbacks, in Swift, have a single value of enum Result<Payload,ErrorType>
  • Improved code docs

0.3.0 (2016-04-25)

Full Changelog

Closed issues:

  • Alamofire dependency #5

Merged pull requests:

  • Update dependencies and fix compile issues #7 (hzalaz)
  • Load domain from Auth0.plist if not in main infoDictionary #4 (bradfol)

0.2.0 (2015-09-17)

Full Changelog

Merged pull requests:

0.1.2 (2015-07-03)

Full Changelog

Merged pull requests:

  • Allow to call method users from Auth0 struct #1 (hzalaz)

0.1.1 (2015-07-02)

Full Changelog

0.1.0 (2015-07-02)

* This Change Log was automatically generated by github_changelog_generator