azure.ai.ml.identity package¶
-
class
azure.ai.ml.identity.
AzureMLOnBehalfOfCredential
(**kwargs)[source]¶ Authenticates a user via the on-behalf-of flow.
This credential can only be used on Azure Machine Learning Compute. during job execution when user request to run job during its identity.
-
get_token
(*scopes, **kwargs)[source]¶ Request an access token for scopes.
This method is called automatically by Azure SDK clients.
- Parameters
scopes (str) – desired scope for the access token. This credential allows only one scope per request.
- Return type
- Returns
AzureML On behalf of credentials isn’t available in the hosting environment
- Raises
~azure.identity.CredentialUnavailableError
-