OIDCTokenExchangeAuth#
- class eodag.plugins.authentication.token_exchange.OIDCTokenExchangeAuth(provider, config)[source]#
- Token exchange implementation using
OIDCAuthorizationCodeFlowAuthtoken as subject.
- Parameters:
provider (
str) – provider nameconfig (
PluginConfig) –Authentication plugin configuration:
subject(dict[str, Any]) (mandatory): The fullOIDCAuthorizationCodeFlowAuthplugin configuration used to retrieve subject tokensubject_issuer(str) (mandatory): Identifies the issuer of the subject_tokentoken_uri(str) (mandatory): The url to query to get the authorized tokenclient_id(str) (mandatory): The OIDC provider’s client ID of the eodag provideraudience(str) (mandatory): This parameter specifies the target client you want the new token minted for.token_key(str) (mandatory): The key pointing to the token in the json response to the POST request to the token server
- __init__(provider, config)[source]#
- 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
GRANT_TYPEREQUIRED_KEYSSUBJECT_TOKEN_TYPEplugins