6.1.1.3.2.3. linotp.lib.apps module

This file contains utilities to generates the URL for smartphone apps like
google authenticator oath token
linotp.lib.apps.create_google_authenticator(param)[source]

create url for google authenticator

Parameters:param – request dictionary
Returns:string with google url
linotp.lib.apps.create_google_authenticator_url(user, realm, key, type='hmac', serial='')[source]

This creates the google authenticator URL. This url may only be 119 characters long. Otherwise we qrcode.js can not create the qrcode. If the URL would be longer, we shorten the username

We expect the key to be hexlified!

linotp.lib.apps.create_oathtoken_url(user, realm, otpkey, type='hmac', serial='')[source]