linotp.provider.pushprovider.default_push_provider module¶
- implementation of the KeyIdentity PushProvider 
- class linotp.provider.pushprovider.default_push_provider.DefaultPushProvider¶
- Bases: - IPushProvider,- ConfigParsingMixin- Send a push notification to the default push notification proxy (PNP). - static get_proxy_definition(proxy_url=None)¶
 - 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) 
 - {
- “push_url”:
- the push provider target url or a list of those, 
- “access_certificate”:
- the client_certificate 
- “server_certificate”:
- server verification certificate 
- “proxy”: ‘
- the proxy url 
- “timeout”:
- the http timeout value 
 
 - } 
 - push_notification(challenge, gda, transactionId)¶
- Sends out the push notification message. - Parameters
- challenge – The push notification message / challenge 
- gda – the gda - global device identifier 
- transactionId – The push notification transaction reference 
 
- Returns
- A tuple of success and result message 
 
 
- linotp.provider.pushprovider.default_push_provider.main()¶
- main here - for the interactive test :-)