Skip to content

Latest commit

 

History

History
941 lines (646 loc) · 52.3 KB

CHANGELOG.md

File metadata and controls

941 lines (646 loc) · 52.3 KB

Change Log

2.10.0 (2024-10-14)

Full Changelog

Added

  • feat: added support for webview as a provider for webauth #875 (desusai7)

2.9.0 (2024-09-06)

Full Changelog

Added

2.9.0-beta.0 (2024-07-05)

Full Changelog

Added

2.8.0 (2024-06-19)

Full Changelog

Added

2.7.2 (2024-05-08)

Full Changelog

Fixed

  • fix: removed the possibility of concurrent webauth transactions to handle continuation misuse #848 (desusai7)
  • fix: removed the validation of incoming redirect_uri once the webauth flow resumes back #850 (desusai7)
  • fix: added url error code dataNotAllowed as a network error #847 (desusai7)

2.7.1 (2024-05-03)

Full Changelog

Fixed

  • fix: fixed the declaration of the privacy manifest in Auth0.podspec #846 (desusai7)

2.7.0 (2024-04-12)

Full Changelog

Added

2.6.0 (2024-03-01)

Full Changelog

Added

Changed

Deprecated

  • Deprecate methods related to updating user attributes using the Management API #815 (Widcket)

Fixed

  • Fix crash when the bundle ID contains characters not allowed in URL schemes #786 (Widcket)

2.5.0 (2023-07-18)

Full Changelog

Added

  • Add support for validating the org_name claim [SDK-4414] #782 (Widcket)
  • Add more error pairs to isMultifactorCodeInvalid [SDK-4195] #779 (Widcket)

2.4.0 (2023-06-15)

Full Changelog

Added

Changed

  • Bump the minimum versions of JWTDecode.swift and SimpleKeychain #777 (Widcket)

Fixed

  • Fix unhandled dismissal of SFSafariViewController #758 (Widcket)

Removed

  • Drop support for iOS 12, tvOS 12, macOS 10.15, watch0S < 7, and Xcode 13 #775 (Widcket)

2.3.2 (2022-10-28)

Full Changelog

Fixed

  • Fix login web page cannot be open by canceling the AS session #735 (hadiidbouk)

2.3.1 (2022-07-29)

Full Changelog

Fixed

  • Fix Web Auth race condition [SDK-3522] #731 (Widcket)

2.3.0 (2022-07-22)

Full Changelog

Added

  • Expose error when storing renewed credentials fails #724 (Widcket)
  • Add canRenew() to the Credentials Manager #723 (Widcket)

Changed

  • Update SimpleKeychain to v1.0.0 & JWTDecode.swift to v3.0.0 #725 (Widcket)

Fixed

  • Fix async/await threading issues with Swift 5.7 #722 (Widcket)

2.2.0 (2022-07-14)

Full Changelog

Added

  • Add new error types to AuthenticationError [SDK-3492] #712 (Widcket)

Changed

2.1.0 (2022-05-26)

Full Changelog

Added

  • Add support for custom Web Auth providers [SDK-3338] #699 (Widcket)

2.0.1 (2022-04-29)

Full Changelog

Fixed

  • Send GET request parameters as query params [SDK-3324] #678 (Widcket)

2.0.0 (2022-03-14)

Full Changelog

Migration Guide

2.0.0-beta.1 (2022-01-26)

Full Changelog

Migration Guide

Added

  • Add isRefreshTokenDeleted error [SDK-3079] #641 (Widcket)

2.0.0-beta.0 (2022-01-17)

Full Changelog

Migration Guide

⚠️ BREAKING CHANGES

  • Make UserPatchAttributes class final #611 (Widcket)
  • Remove remaining parameters parameter #607 (Widcket)
  • Rename realm parameter to realmOrConnection #602 (Widcket)
  • Make the Challenge.CodingKeys enum internal #601 (Widcket)
  • Rename createUser to signup #597 (Widcket)
  • Have clearSession() yield a Result #584 (Widcket)
  • Have the revoke() method yield a Result #582 (Widcket)
  • Lowercase the PasswordlessType enum cases #580 (Widcket)
  • Do not check for Refresh Token presence in hasValid(minTTL:) #574 (Widcket)
  • Remove parameterless tokenExchange() method #573 (Widcket)
  • Make AuthTransaction internal #570 (Widcket)
  • Remove Web Auth method embedded in Authentication API client #560 (Widcket)
  • Use strictly-typed result and error types [SDK-2977] #558 (Widcket)
  • Migrate all errors to structs [SDK-2968] #552 (Widcket)
  • Decouple Credentials Manager storage from SimpleKeychain [SDK-2936] #551 (adamjmcgrath)
  • Replace JSONObjectPayload with Codable on Credentials [SDK-2958] #549 (Widcket)
  • Make credentials renewal thread-safe [SDK-2903] #548 (Widcket)
  • Remove deprecated metods #543 (Widcket)
  • Remove custom Result type [SDK-2901] #542 (Widcket)
  • Use openid profile email as the default scope value [SDK-2926] #540 (Widcket)
  • Drop support for Objective-C [SDK-2894] #539 (Widcket)
  • Use only code response type and drop implicit grant [SDK-2899] #538 (Widcket)
  • Remove the channel parameter from MFA challenge method [SDK-2904] #536 (Widcket)
  • Enforce openid scope on Web Auth [SDK-2924] #535 (Widcket)
  • Make some Credentials properties non-optional [SDK-2900] #533 (Widcket)
  • Drop support for HS256 #532 (Widcket)
  • Drop older Swift versions #531 (Widcket)
  • Remove parameters from Authentication API client methods [SDK-2902] #530 (Widcket)
  • Drop platform versions [SDK-2895] #527 (Widcket)

Added

  • Add wrappers with default values for MFA methods #583 (Widcket)
  • Add support for async/await #572 (Widcket)
  • Add custom description to Credentials #571 (Widcket)
  • Add support for Combine [SDK-2907] #566 (Widcket)
  • Add a way to pass custom headers directly to the request [SDK-2908] #562 (adamjmcgrath)
  • Add support for subpaths in Auth0 domain [SDK-2963] #557 (Widcket)
  • Add support for custom URL sessions to Web Auth #556 (Widcket)

Changed

  • Use Auth0Error for ID Token validation errors #569 (Widcket)
  • Migrate existing Objective-C code to Swift [SDK-2905] #547 (adamjmcgrath)

Fixed

  • Fix version number reported by telemetry when using SPM #633 (Widcket)
  • Fix auth time validation #626 (Widcket)

1.39.0 (2022-03-07)

Full Changelog

Added

  • [SDK-3145] Add Auth0Client parameter to logout and add view to telemetry.env for iOS #659 (adamjmcgrath)

1.38.1 (2022-02-02)

Full Changelog

Fixed

  • Fix auth_time validation #652 (Widcket)
  • Fix version number reported by telemetry when using SPM #651 (Widcket)

1.38.0 (2021-10-29)

Full Changelog

Deprecated

  • Deprecate the responseType Web Auth method #525 (Widcket)

1.37.1 (2021-10-15)

Full Changelog

Fixed

  • Add Carthage/Build to the frameworks search path #521 (Widcket)
  • Add .macCatalyst to Package.swift #518 (Widcket)

1.37.0 (2021-10-12)

Full Changelog

Changed

Deprecated

  • Deprecate resumeAuth and useLegacyAuthentication #514 (Widcket)

1.36.0 (2021-09-01)

Full Changelog

Added

Deprecated

1.35.0 (2021-07-19)

Full Changelog

Added

  • Expose recovery code [SDK-2661] #487 (Widcket)
  • [FR-485] Add support for custom LAPolicy when evaluating biometry aut… #486 (krodak)

1.34.0 (2021-07-05)

Full Changelog

Added

  • Add user property to CredentialsManager [SDK-2633] #482 (Widcket)

1.33.1 (2021-06-07)

Full Changelog

Changed

  • Make test dependencies not resolve when installing with SPM [SDK-2600] #476 (Widcket)

1.33.0 (2021-04-23)

Full Changelog

Changed

  • Use Swift's built-in Result type when available #467 (ejensen)

1.32.0 (2021-03-18)

Full Changelog

Added

  • Added support for organizations [SDK-2397] #463 (Widcket)

1.31.1 (2021-03-09)

Full Changelog

Fixed

  • Skipped kid validation when alg is HS256 [SDK-2328] #455 (Widcket)

1.31.0 (2021-02-12)

Full Changelog

Added

  • Added support for OOB and Recovery code MFA challenges #442 (ejensen)
  • Added support for a wider variety of primitive types for the Credentials expiration date #440 (seanmcneil)

Fixed

  • Always add a max_age if one was provided #452 (Widcket)

1.30.1 (2020-11-11)

Full Changelog

Fixed

1.30.0 (2020-10-23)

Full Changelog

Added

  • Added clearSession to the Objective-C WebAuth wrapper #426 (Widcket)
  • Added Swift Package Manager support [SDK-2014] #425 (Widcket)

1.29.0 (2020-10-08)

Full Changelog

Changed

Fixed

  • Bugfix for minTTL on CredentialsManager.swift #420 (heyzooi)

1.28.0 (2020-08-21)

Full Changelog

Added

  • Added support for custom issuer for ID Token validation [SDK-1909] #411 (Widcket)
  • Added CredentialsManager to watchOS target [SDK-1906] #409 (Widcket)
  • Added isVerificationRequired error [SDK-1865] #408 (Widcket)

1.27.0 (2020-07-27)

Full Changelog

Added

  • Added TTL renewal of credentials in CredentialsManager [SDK-1818] #399 (Widcket)

1.26.0 (2020-06-10)

Full Changelog

Added

  • Added Sign In with Apple profile parameter #392 (ejensen)

Changed

  • Moved NativeAuth.start() into the NativeAuth protocol declaration #390 (ejensen)

1.25.0 (2020-05-18)

Full Changelog

Added

  • Added support for ephemeral sessions [SDK-1559] #388 (Widcket)
  • Bumped dependencies [SDK-1630] #386 (Widcket)

1.24.1 (2020-04-30)

Full Changelog

Fixed

  • Added compilation conditions to Podspec #384 (Widcket)

1.24.0 (2020-04-29)

Full Changelog

Added

  • Added WebAuth support to macOS [SDK-1545] #381 (Widcket)

1.23.0 (2020-03-30)

Full Changelog

Added

  • Added support for Refresh Token Rotation [SDK-1420] #369 (Widcket)
  • Added support for iOS extensions #365 (Widcket)
  • Added Facebook token exchange method [SDK-1401] #358 (Widcket)

Deprecated

Fixed

Security

1.22.1 (2020-02-28)

Full Changelog

Fixed

  • Fixed build failure with SimpleKeychain 0.11.0 #354 (jshier)

1.22.0 (2020-02-19)

Full Changelog

Added

  • Added redirect URL method to WebAuth builder [SDK-1299] #351 (Widcket)

Changed

  • Refactored SIWA token exchange method [SDK-1349] #350 (Widcket)

1.21.0 (2020-02-04)

Full Changelog

Added

Fixed

1.20.0 (2020-01-03)

Full Changelog

Added

  • Implemented passwordless login [SDK-1185] #330 (Widcket)

1.19.3 (2019-11-27)

Full Changelog

Fixed

1.19.2 (2019-11-14)

Full Changelog

Added

  • Add support for extended profile using SIWA token exchange #322 (asmclean)

1.19.1 (2019-10-31)

Full Changelog

Added

  • Renew tokens in Credentials Manager if either token has expired [SDK-999] #319 (cocojoe)

Fixed

  • Fix non-main thread use during inspection in SafariViewController [SDK-1119] #318 (cocojoe)

1.19.0 (2019-10-15)

Full Changelog

Added

  • CredentialsManager function to clear and revoke the refresh token #312 (stevehobbsdev)

1.18.0 (2019-09-20)

Full Changelog

Added

  • Default DismissButtonStyle when using SFSafariViewController iOS 11+ #305 (andrewfoghel)
  • Added SIWA token exchange support #304 (cocojoe)

1.17.1 (2019-09-04)

Full Changelog

Fixed

  • Fixed ability to clear WebAuth session in iOS 13 #301 (matt)

1.17.0 (2019-08-27)

Full Changelog

Added

  • Added support for iOS13 changes in ASWebAuthenticationSession #297 (cocojoe)
  • Added authentication method for default directory login #296 (cocojoe)

Notes Behaviour changes in iOS 13 relating to Web Authentication require that in Xcode 11 this library must be compiled using Swift 5.x. This should be the default setting unless it has been manually changed.

1.16.1 (2019-07-29)

Full Changelog

Fixed

  • Fixed ObjMembers attribute added for ObjC access #289 (cocojoe)

1.16.0 (2019-07-17)

Full Changelog

Added

  • Added support for root attributes when creating a new user #287 (cocojoe)

Fixed

  • Fix: Remove force unwrap in AuthSession handler #286 (cocojoe)
  • Fix Dismiss AS/SF authentication sessions upon deep-link callback #281 (cysp)
  • Update app configuration error message for PKCE #280 (lbalmaceda)

1.15.0 (2019-04-24)

Full Changelog

Added

1.14.2 (2019-03-18)

Full Changelog

Changed

  • Ensure URL encoding of + as %2B Authorize URL [SDK-691] #259 (cocojoe)
  • Updated Auth0 Telemetry Format #256 (cocojoe)

1.14.1 (2019-01-11)

Full Changelog

Fixed

  • Add Fix for Brew in Swift 3.0 CI #254 (cocojoe)
  • Pods Fix - Move AuthenticationServices to weak_framework section #253 (ivabra)

1.14.0 (2018-12-06)

Full Changelog

Added

Fixed

  • Ensure correct thread execution in test app #227 (cocojoe)

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