SASAuth#
- class eodag.plugins.authentication.sas_auth.SASAuth(provider, config)[source]#
SASAuth authentication plugin
An apiKey that is added in the headers can be given in the credentials in the config file.
- Parameters:
provider (
str) – provider nameconfig (
PluginConfig) –Authentication plugin configuration:
type(str) (mandatory): SASAuthauth_uri(str) (mandatory): url used to get the signed urlsigned_url_key(str) (mandatory): key to get the signed urlheaders(dict[str, str]) (mandatory if apiKey is used): headers to be added to the requestsssl_verify(bool): if the ssl certificates should be verified in the requests; default:Trueretry_total(int): total number of retries; default:3retry_backoff_factor(int): retry backoff factor; default:2retry_status_forcelist(list[int]): HTTP status codes to retry; default:[401, 429, 500, 502, 503, 504]
- __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
bind_collection(provider_collection)Return a product-specific auth plugin using its provider collection ID.
ensure_plugins_loaded()Load plugin classes for this topic from entry points if needed.
normalize_config(provider, config)Normalize plugin config defaults.
presign_url(asset[, expires_in])This method is used to presign a url to download an asset.
validate_config_credentials()Validate configured credentials
Attributes
entrypoint_grouppluginsprovider_collection