linotp.lib.config module

handle all configuration items with aspekts like persitance and syncronysation and provides this to all requests

linotp.lib.config.getFromConfig(key, defVal=None)[source]
linotp.lib.config.getLinotpConfig()[source]

return the thread local dict with all entries

Returns:local config dict
Return type:dict
linotp.lib.config.refreshConfig()[source]
linotp.lib.config.refresh_config()[source]

retrieves all config entries from the database and rewrites the global linotp_config object

linotp.lib.config.removeFromConfig(key, iCase=False)[source]
linotp.lib.config.setDefaultCountWindow(countWindowSize)[source]
linotp.lib.config.setDefaultMaxFailCount(maxFailCount)[source]
linotp.lib.config.setDefaultOtpLen(otpLen)[source]
linotp.lib.config.setDefaultResetFailCount(resetFailCount)[source]
linotp.lib.config.setDefaultSyncWindow(syncWindowSize)[source]
linotp.lib.config.storeConfig(key, val, typ=None, desc=None)[source]

storing the config entry into the db and in the global config

  • external interface for storing config entries, which implies the conversion of the encrypted data to an encrypted data object
Parameters:
  • key – name of the entry
  • val – the value
  • typ – -optional- the type
  • desc – -optional- the description
linotp.lib.config.updateConfig(confi)[source]

update the server config entries incl. syncing it to disc