linotp.provider.provider_base module

class linotp.provider.provider_base.ProviderBase[source]

Bases: object

static load_client_cert(configDict, client_cert_key='access_certificate')[source]

return the client certificate from the configuration

Parameters:configDict
Returns:return the validated client certificate reference
static load_proxy(configDict)[source]

return the proxy defintion from the configuartion

Parameters:configDict
Returns:the proxy definition dict like {https: ‘https_proxy’ ..}
static load_server_cert(configDict)[source]

return the server certificate from the configuration

Parameters:configDict
Returns:return the validated server certificate reference
static load_server_url(configDict, server_url_key='server_url')[source]

return the server url

Parameters:configDict
Returns:return the validated server url
static load_timeout(configDict, timeout_default=None)[source]
simple timeout or timeout tuple

timeout could come with capital letter and could be a

  • simple timeout (float) or
  • a tuple of connection and request timeout (float)
Parameters:
  • configDict – the configuration dictionary
  • timeout_default – a fallback for the timeout
Returns:

None, a float or a tuple of connection and network timeout