OIDCTokenExchangeAuth#
- class eodag.plugins.authentication.token_exchange.OIDCTokenExchangeAuth(provider, config)[source]#
- Token exchange implementation using
OIDCAuthorizationCodeFlowAuth
token as subject.
- Parameters:
provider (
str
) – provider nameconfig (
PluginConfig
) –Authentication plugin configuration:
subject
(Dict[str, Any]
) (mandatory): The fullOIDCAuthorizationCodeFlowAuth
plugin 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
validate_config_credentials
()Validate configured credentials
Attributes
GRANT_TYPE
REQUIRED_KEYS
SUBJECT_TOKEN_TYPE
plugins