Skip to content

Releases: SchweizerischeBundesbahnen/SwissPassSDK-iOS

4.3.1

18 Jun 06:44
Compare
Choose a tag to compare

Added

Changed

Fixed

  • Fixed crashes in SwissPass Mobile due to a bug in libdispatch.

4.3.0

30 May 09:35
Compare
Choose a tag to compare

Added

  • Added support for extended dynamic range (EDR) QR Codes on iOS 16+
  • Added support for opening the new travel card details page on swisspass.ch using the enum value .infoAboDetails

Changed

  • Using an explicit lang query parameter to specify the app language for swisspass.ch URLs.

Fixed

4.2.0

20 Feb 10:42
75ea575
Compare
Choose a tag to compare

Added

  • Added the method requestSSOLink(withURL:, completionHandler:) and the .ssoUnavailable error to the SwissPassLoginClient

Changed

  • Updated all SSO endpoints.

Fixed

4.1.0

25 Aug 07:33
Compare
Choose a tag to compare

Added

  • Added the SwissPass Mobile card number to the SwissPassMobileCardViewController.
  • Added an optional boolean property isContactMobilePhoneNumberVerified to the UserInfo struct
  • Added the method cancelLogin() to the SwissPassLoginClient

Changed

  • Removed support for bitcode.
  • Changed the SwissPass card number handling.
  • Changed the access token expiration date logic to match the Android implementation.
  • Changed the SwissPass Mobile QR-Code payload encoding to match the Android implementation.
  • Refactored raw byte handling.

Fixed

  • Fixed a memory leak in the SwissPassMobileClient.
  • Fixed a memory leak in the SwissPassMobileCardViewController.
  • Fixed a memory leak in the SwissPassMobileViewController.
  • Fixed a time zone handling in UserInfo.
  • Fixed a rare crash that occured when the user closed the browser before the login completed

4.0.2

16 Aug 15:12
Compare
Choose a tag to compare

Fixed

  • The SwissPassMobileClient uses the correct hostname when setting up SCNetworkReachability.

4.0.1

22 Jun 16:43
Compare
Choose a tag to compare

Fixed

  • The SwissPassMobileClient now maps all error types correctly while updating the security element.

4.0

03 Jun 07:03
Compare
Choose a tag to compare
4.0

Added

  • Added support for OpenId Connect Discovery to load the OpenID provider configuration information. If this fails, a .providerConfigurationUnavailable error is returned.
  • Added the global function swissPassClientVersion() that returns the version of the framework.
  • Added support for an identity assurance level on the SwissPassLoginUser and on UserInfo based on the new enum type IAL. Note that currently only IAL1 and IAL2 are supported.
  • Added a 2nd view to the SwissPassMobileCardViewController.
  • Added a new SwissPassMobileCardViewControllerDelegate method which is called when the page view controller did finish a transition.

Changed

  • Changed the deployment target to iOS 12
  • Removed the previously deprecated parameter forceRefresh in requestToken().
  • Removed both the TokenProviderand OAuthServer.
  • Removed the typealias TokenHandler
  • Changed the ClientFactory to take a SwissPassLoginClient when creating the SwissPassMobileClient.
  • Changed the app2web SSO mechanism to use the new SSO ticket endpoint.
  • Removed support for the tokenManagement page.
  • Changed the result of requestRegistration() to a .success only if the registration process was completed successfully, otherwise SwissPassLoginError.webSessionClosed is returned.
  • Extended SwissPassLoginError.webSessionClosed with an optional associated WebSessionDetail that provides more information about modifications to the user account.
  • Marked SwissPassMobileViewController as deprecated.
  • Changed the UserInfo property userID to use the key sub instead of SPIdPUID
  • Changed the ClientFactory create methods to throw a ClientError if initialization failed.
  • Removed the computed property accountIsLinkedWithCard on UserInfo.

Fixed

  • The status bar appearance is handled correctly when showing the login window.

3.1.2

28 Oct 08:36
Compare
Choose a tag to compare

Fixed

  • The fare information navigation bar background is set correctly on iOS 15.

3.1.1

22 Sep 09:21
Compare
Choose a tag to compare

Fixed

  • All properties of SwissPassLoginClient are now public.

Changed

  • Built using Xcode 13.

3.1.0

30 Aug 08:15
Compare
Choose a tag to compare

Added

  • Token revocation is performed while performing requestLogout whenever possible.
  • The SwissPassLoginClient now provides information about the authenticated user using the optional SwissPassLoginUser property, based on the validated ID Token.

Changed

  • If the SwissPass OpenId Provider does not return a new refresh token as part of the Token Response then we do not reuse the previously issued refresh token anymore.
  • The parameter forceRefresh in requestToken() of the TokenProvider is now deprecated and should not be used anymore.
  • The SFSafariViewController is now presented using the pageSheet presentation style to improve the user experience.