linotp.tokens.qrtoken package

class linotp.tokens.qrtoken.QRTokenPairingData(user_public_key, user_token_id, serial, user_login)

Bases: _QRTokenPairingData

holds all the information of a QRToken pairing response, namely user_public_key, user_token_id, serial and user_login

linotp.tokens.qrtoken.parse_qrtoken_pairing_data(plaintext)

Parses the decrypted inner layer of a pairing response according to the QRToken Pairing data format.

Parameters

plaintext – The plaintext received from the decryption of the outer pairing response layer

Returns

QRTokenPairingData: A named tuple holding the parsed fields