Holds a freshly generated two factor authentication secret key and its QR code, produced by userManager.temp2FACode. Neither value is persisted. Show the QR code to the user so they can scan it into an authenticator app, then pass the same secret key back to userManager.save2FACode along with the code the app generated to complete enrolment.


Properties

PropertyReturnsDescription
base64ImageStringThe enrolment QR code as a base64 encoded JPEG, 250 by 250 pixels, encoding the otpauth URL for the secret key. Suitable for use directly in a data URI image source.
secretKeyStringThe newly generated base32 TOTP secret key. Pass this back to userManager.save2FACode to complete enrolment.

Methods

getBase64Image()

Returns: String

The enrolment QR code as a base64 encoded JPEG, 250 by 250 pixels, encoding the otpauth URL for the secret key. Suitable for use directly in a data URI image source.

getSecretKey()

Returns: String

The newly generated base32 TOTP secret key. Pass this back to userManager.save2FACode to complete enrolment.

To get full access to the Kademi Hub existing customers can login here, or new customers can register here.