eodag.plugins.authentication.qsauth.HttpQueryStringAuth
eodag.plugins.authentication.qsauth.HttpQueryStringAuth#
- class eodag.plugins.authentication.qsauth.HttpQueryStringAuth(provider, config)[source]#
An Authentication plugin using HTTP query string parameters.
This plugin sends credentials as query-string parameters. Using
HTTPDownload
a download link http://example.com?foo=bar will become http://example.com?foo=bar&apikey=XXX&otherkey=YYY if associated to the following configuration:provider: credentials: apikey: XXX otherkey: YYY
The plugin is configured as follows in the providers config file:
provider: ... auth: plugin: HttpQueryStringAuth auth_uri: 'http://example.com?foo=bar' ... ...
If auth_uri is specified (optional), it will be used to check credentials through
authenticate()
- __init__(provider, config)#
Methods
__init__
(provider, config)authenticate
()Authenticate
validate_config_credentials
()Validate configured credentials
Attributes
plugins