Repository navigation
·
2 commits
to master
since this release
Changelog
New Feature
Added FuturaeOperationsAPI:
exchangeTokenForEnrollmentActivationCode(exchangeToken: String): AsyncOperation<String>: validate anexchangeTokento return an enrollment activation code.fun exchangeTokenForSessionToken(exchangeToken: String) : AsyncOperation<String>: validate anexchangeTokento return a session-token.
Exchange tokens can be acquired via various transport channels. To facilitate QRCode and URI support we added:
- sealed class
QRCodenow supports additional subclassesEnrollTokenExchangeandAuthTokenExchange - sealed class
FTRUriTypenow supports additional subclassesEnrollExchangeTokenandAuthExchangeToken
Behavior changes
- The new additions to
QRCodeandFTRUriTypemay be a breaking change if using exhaustivewhenstatements. FuturaeQrCodeAPI.getQRCodenow supports the newQRCodesubclasses
Important notice
- The deprecated
FTQRCodeUtils.getQrcodeTypeandQRTypedoes NOT offer support for the new token-exchange QRs. Please useFuturaeQrCodeAPI.getQRCodeinstead. - Deprecated
FuturaeOperationsApi. handleUrias it cannot support token-exchange which needs a return type. Please useFTUriUtils.getFTRUriTypeinstead and handle the returnedFTRUriTypeaccordingly.