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.
- Parameters:
provider (
str) – provider nameconfig (
PluginConfig) –Authentication plugin configuration:
Using
HTTPDownloada download linkhttp://example.com?foo=barwill becomehttp://example.com?foo=bar&apikey=XXX&otherkey=YYYif 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_uriis specified (optional), it will be used to check credentials throughauthenticate()- __init__(provider, config)#
- Parameters:
provider (
str)config (
PluginConfig)
Methods
__init__(provider, config)authenticate()Authenticate
authenticate_objects(bucket_names_and_prefixes)Authenticates with s3 and retrieves the available objects
validate_config_credentials()Validate configured credentials
Attributes
plugins