AzureMLOnBehalfOfCredential Class

Authenticates a user via the on-behalf-of flow.

This credential can only be used on Azure Machine Learning Compute or Azure Machine Learning Serverless Spark Compute during job execution when user request to run job using its identity.

Inheritance
builtins.object
AzureMLOnBehalfOfCredential

Constructor

AzureMLOnBehalfOfCredential(**kwargs: Any)

Methods

close

Close the credential's transport session.

get_token

Request an access token for scopes.

This method is called automatically by Azure SDK clients.

close

Close the credential's transport session.

close() -> None

get_token

Request an access token for scopes.

This method is called automatically by Azure SDK clients.

get_token(*scopes: str, **kwargs: Any) -> AccessToken

Parameters

Name Description
scopes
Required
str

desired scope for the access token. This credential allows only one scope per request.

Returns

Type Description

AzureML On behalf of credentials isn't available in the hosting environment

Exceptions

Type Description