Skip to content

v3.9.2-beta

Latest

Choose a tag to compare

@dimitrisFuturae dimitrisFuturae released this 15 Dec 12:12
· 2 commits to master since this release
394f750

Changelog

New Feature

Added FuturaeOperationsAPI:

  • exchangeTokenForEnrollmentActivationCode(exchangeToken: String): AsyncOperation<String>: validate an exchangeToken to return an enrollment activation code.
  • fun exchangeTokenForSessionToken(exchangeToken: String) : AsyncOperation<String>: validate an exchangeToken to return a session-token.

Exchange tokens can be acquired via various transport channels. To facilitate QRCode and URI support we added:

  • sealed class QRCode now supports additional subclasses EnrollTokenExchange and AuthTokenExchange
  • sealed class FTRUriType now supports additional subclasses EnrollExchangeToken and AuthExchangeToken

Behavior changes

  • The new additions to QRCode and FTRUriType may be a breaking change if using exhaustive when statements.
  • FuturaeQrCodeAPI.getQRCode now supports the new QRCode subclasses

Important notice

  • The deprecated FTQRCodeUtils.getQrcodeType and QRType does NOT offer support for the new token-exchange QRs. Please use FuturaeQrCodeAPI.getQRCode instead.
  • Deprecated FuturaeOperationsApi. handleUri as it cannot support token-exchange which needs a return type. Please use FTUriUtils.getFTRUriType instead and handle the returned FTRUriType accordingly.