Skip to content

Latest commit

 

History

History
512 lines (371 loc) · 27.9 KB

CHANGELOG.md

File metadata and controls

512 lines (371 loc) · 27.9 KB

Change Log

2.24.1 (2021-11-30)

Full Changelog

Fixed

  • Add Carthage/Build to the frameworks search path #690 (Widcket)

2.24.0 (2021-10-12)

Full Changelog

Added

  • Add ability to input code when using magic links [SDK-2826] #684 (Widcket)

2.23.1 (2021-09-21)

Full Changelog

Changed

  • Use tenant.locality.auth0.com as CDN URL [SDK-2709] #679 (Widcket)

Fixed

2.23.0 (2021-07-20)

Full Changelog

Added

2.22.3 (2021-06-07)

Full Changelog

Changed

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

2.22.2 (2021-05-20)

Full Changelog

Fixed

  • Use OTP grant for magic links [SDK-2576] #667 (Widcket)

2.22.1 (2021-04-13)

Full Changelog

Fixed

  • Fix LockViewController dismissal when presented as a popup #647 (agirault)

2.22.0 (2021-03-09)

[Full Changelog](https://github.com/auth0/Lock.swift/compare/2.21.0...2.22.0

Added

  • Support OOB MFA challenges #649 (ejensen)
  • Added support for terms and privacy button color customization #652 (ejensen)

Changed

  • Use standard UIImages instead of custom LazyImages #654 (ejensen)

Fixed

  • Fix bot detection CAPTCHA not being shown #651 (ejensen)
  • Fixed enterprise form validation [SDK-2327] #655 (Widcket)
  • Project and SwiftLint warning fixes #657 (ejensen)
  • Fixed retain cycles on DatabasePresenter [SDK-2360] #660 (Widcket)

2.21.0 (2020-12-04)

[Full Changelog](https://github.com/auth0/Lock.swift/compare/2.20.0...2.21.0

Added

  • Added Swift Package Manager support [SDK-2118] #646 (Widcket)

2.20.0 (2020-10-22)

[Full Changelog](https://github.com/auth0/Lock.swift/compare/2.19.1...2.20.0

Changed

2.19.1 (2020-10-05)

[Full Changelog](https://github.com/auth0/Lock.swift/compare/2.19.0...2.19.1

Changed

  • Increased tappable surface of close and back buttons #635 (Widcket)
  • Updated 37 Signals icon and display name [SDK-1945] #633 (Widcket)

2.19.0 (2020-08-25)

Full Changelog

Added

  • Added support for Bot Protection verification [SDK-1867] #629 (Widcket)

2.18.0 (2020-07-14)

Full Changelog

Changed

2.17.2 (2020-06-18)

Full Changelog

Fixed

2.17.1 (2020-05-18)

Full Changelog

Changed

2.17.0 (2020-04-22)

Full Changelog

Fixed

  • Fixed auth button highlighted color issue #611 (Widcket)
  • Changed the background color to black #610 (Widcket)
  • Fixed signup form state bug [SDK-1490] #608 (Widcket)

Security

2.16.1 (2020-03-10)

Full Changelog

Fixed

2.16.0 (2020-03-02)

Full Changelog

Changed

  • Updated AuthButton style to match Lock.js [SDK-1376] #600 (Widcket)
  • Updated AuthButton style [SDK-1376] #599 (Widcket)

2.15.0 (2020-02-06)

Full Changelog

Added

  • Integrated ID Token Validation on WebAuth [SDK-982] #596 (Widcket)

Fixed

2.14.0 (2020-01-06)

Full Changelog

Added

  • Allowed customization of rule text color [SDK-1243] #590 (Widcket)
  • Added support for hidden CustomTextField #587 (ejensen)
  • Added default styling for Sign in with Apple social login button #586 (ejensen)
  • Added Passwordless support for OIDC conformant clients [SDK-1186] #591 (Widcket)

2.13.2 (2019-11-27)

Full Changelog

Fixed

2.13.1 (2019-10-14)

Full Changelog

Fixed

  • Fix iOS 13.x Bug - Calling UI on non-main thread #576 (pixeled)

2.13.0 (2019-09-30)

Full Changelog

Deprecated

  • Deprecated Legacy 1Password Manager Functionality #572 (cocojoe)

Fixed

2.12.0 (2019-08-27)

Full Changelog

Added

2.11.0 (2019-07-26)

Full Changelog

Added

Changed

  • Updated Password Reset messaging #554 (dms90)

Fixed

  • Fixed use default .fullScreen modalPresentationStyle #559 (cocojoe)
  • Fix secondary button color after switching tabs #555 (mariancerny)

2.10.1 (2019-05-07)

From this release on, the option to display social connections in small styled buttons is no longer available due to branding compliance reasons. All the social connections will now be displayed as large styled buttons.

Full Changelog

Changed

  • Update Email validation to allow uppercase characters #551 (cocojoe)
  • Changed OAuth Google logo inline with new compliance #548 (cocojoe)

2.10.0 (2019-04-25)

Full Changelog

Added

Changed

2.9.0 (2018-12-12)

Full Changelog

Added

Changed

  • Fixed Authentication HTTP logging pass through flag #527 (cocojoe)

2.8.0 (2018-10-05)

Full Changelog

Added

2.7.0 (2018-09-18)

Full Changelog

Added

  • Added Password Complexity Support in Password Policies #513 (cocojoe)

Changed

  • Ensure Xcode10 Auth0.swift dependency used #516 (cocojoe)

Deprecated

  • Deprecated static vars in password policy in favour of funcs #514 (cocojoe)

Fixed

2.6.0 (2018-06-12)

Full Changelog

Added

  • Updated Auth0 Shipper Plugin #508 (cocojoe)
  • Added configurationBaseURL option for Custom Domains support #505 (cocojoe)
  • Added mustAcceptTerms option for Sign up #503 (cocojoe)

Changed

Fixed

  • Fixed passing parameters option to OIDC Login #507 (cocojoe)

2.5.1 (2018-01-30)

Full Changelog

Changed

  • Changed default modal presentation style for iPad #493 (cocojoe)

2.5.0 (2018-01-10)

Full Changelog

Added

2.4.2 (2017-11-13)

Full Changelog

Fixed

  • Fixed error presenter callback thread during failed universal link auth #476 (cocojoe)

2.4.1 (2017-10-19)

Full Changelog

Changed

2.4.0 (2017-09-20)

Full Changelog

Changed

  • Disabled Code coverage Xcode 9 #467 (cocojoe)
  • Update Nimble lib and test code (Fixes tests in Xcode 9) #464 (cocojoe)

Fixed

2.3.1 (2017-07-11)

Full Changelog

Added

  • Added Error message on database user creation if user already exists #443 (f2m2rd)
  • Added allowShowPassword option, toggle password text visibility #442 (cocojoe)

Changed

  • Added Grant information for Passwordless docheaders #441 (cocojoe)

2.3.0 (2017-06-06)

Full Changelog Closed issues

  • Add style properties for the status bar #416
  • CustomTextField & sign up form should support fields without icons #409

Added

  • Added Custom Rule Error support #436 (adolfo)
  • Expand Lock style customization #432 (cocojoe)
  • 1Password Support for Database Connections #422 (cocojoe)
  • Added UnrecoverableError support and retry links #419 (cocojoe)

2.2.0 (2017-04-25)

Full Changelog

Added

  • Add palpal-sandbox support #431 (ziluvatar)
  • NativeAuth provider check and fallback in Auth0OAuth2Interactor #418 (cocojoe)
  • Added Passwordless SMS Support #414 (cocojoe)
  • Added login_hint support to Enterprise Connections #413 (cocojoe)
  • Passwordless Email (Code/Link) and Social #395 (cocojoe)

2.1.0 (2017-03-13)

Full Changelog

Added

  • Added Connection Scope support for OAuth2 connections #386 (cocojoe)
  • Native authentication handler support #377 (cocojoe)

Changed

  • Update evernote color to match branding #411 (hzalaz)

2.0.0 (2017-02-16)

Full Changelog

Added

  • Show error when using audience in non OIDC mode #391 (hzalaz)
  • Add centralized error processing to Dispatcher #374 (cocojoe)
  • Add Fatal Erorrs to UnrecoverableError for Debug Builds #373 (cocojoe)
  • Auto close on success event behaviour and customization #370 (cocojoe)
  • Critical error handling and presentation #367 (cocojoe)

Changed

  • i18n strings file for Base language in Lock #393 (hzalaz)
  • Change AD screens styling #384 (hzalaz)
  • Navigate to Login screen after ResetPassword and Signup events #369 (cocojoe)

Fixed

  • Fixed single connection behaviour for enterprise #387 (hzalaz)
  • Fixed crash when loading any enterprise connection with no name #385 (hzalaz)
  • Fix signup password policy view enforcement on single screen #371 (cocojoe)

2.0.0-rc.2 (2017-01-10)

Full Changelog

Added

Fixed

2.0.0-rc.1 (2016-12-16)

Full Changelog

Added

Changed

  • Compatibility updates against latest Auth0.Swift #356 (cocojoe)
  • Allow developer to get controller to show lock. #349 (hzalaz)
  • Migrate codebase to Swift 3.0 #345 (cocojoe)

Fixed

  • Fixed retain issues between presenter and views #355 (cocojoe)

2.0.0-beta.2 (2016-09-20)

Full Changelog

Added

2.0.0-beta.1 (2016-08-19)

Full Changelog

Lock for iOS rewritten in Swift

Usage

First to import Lock.swift

import Lock

then in your AppDelegate.swift add the following

func application(app: UIApplication, openURL url: NSURL, options: [String : AnyObject]) -> Bool {
    return Lock.resumeAuth(url, options: options)
}

Configuration

In order to use Lock you need to provide your Auth0 Client Id and Domain, either with a Property List file

Auth0 ClientId & Domain can be found in your Auth0 Dashboard

Auth0.plist file

In your application bundle you can add a plist file named Auth0.plist with the following format

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
  <key>ClientId</key>
  <string>{YOUR_CLIENT_ID}</string>
  <key>Domain</key>
  <string>{YOUR_DOMAIN}</string>
</dict>
</plist>

Classic

Lock Classic handles authentication using Database, Social & Enterprise connections.

Currenty Lock.swift only supports Database & Social authentication and you need to tell Lock what connections it should use

To show Lock.swift, add the following snippet in any of your UIViewController

Lock
    .classic()
    .connections {
        $0.database(name: "Username-Password-Authentication", requiresUsername: true)
    }
    .options {
        $0.closable = false
    }
    .on { result in
        switch result {
        case .Success(let credentials):
            print("Obtained credentials \(credentials)")
        case .Failure(let cause):
            print("Failed with \(cause)")
        case .Cancelled:
            print("User cancelled")
        }
    }
    .present(from: self)

Specify Connections

Eventually Lock.swift will be able to load your application configuration automatically, but until then you should describe what connections it should use.

Before presenting Lock.swift you can tell it what connections it should display and use to authenticate an user. You can do that by calling the method and supply a closure that can specify the connections

.connections { connections in
    // Your connections
}

So if you need a database connection you can call

connections.database(name: "{CONNECTION_NAME}", requiresUsername: true)

Or a social connection

connections.social(name: "{CONNECTION_NAME}", style: .Facebook)

Logging

In Lock.swift options you can turn on/off logging capabilities

Lock
    .classic()
    .options {
        $0.logLevel = .All
        $0.logHttpRequest = true
    }