linotp.provider.pushprovider package¶
- interface of the PushProvider 
- class linotp.provider.pushprovider.IPushProvider¶
- Bases: - object- An abstract class that has to be implemented by ever e-mail provider class - DEFAULT_TIMEOUT = (3, 5)¶
 - static getConfigMapping()¶
- for dynamic, adaptive config entries we provide the abilty to have dedicated config entries - entries should look like: { - key: (ConfigName, ConfigType) - } 
 - loadConfig(configDict)¶
- Loads the configuration for this push notification provider - Parameters
- configDict – A dictionary that contains all configuration entries you defined (e.g. in a linotp.cfg file) 
 
 - provider_type = 'push'¶
 - push_notification(challenge, gda, transactionId)¶
- Sends out the push notification message. - Parameters
- challenge – The push notification message / challenge 
- gda – alternative to the token_info, the gda could be provided directly 
- transactionId – The push notification transaction reference 
 
- Returns
- A tuple of success and result message