in azure-kusto-data/azure/kusto/data/_token_providers.py [0:0]
def __init__(self, kusto_uri: str, authority_id: str, device_code_callback: DeviceCallbackType = None, is_async: bool = False):
self._msal_client = None
self._auth = authority_id
self._account = None
self._device_code_callback = device_code_callback
def credential_from_login_endpoint(endpoint: str):
cred = DeviceCodeCredential(
authority=endpoint,
tenant_id=self._auth,
client_id=self._cloud_info.kusto_client_app_id,
prompt_callback=self._device_code_callback,
)
return cred
super().__init__(kusto_uri, is_async, credential_from_login_endpoint=credential_from_login_endpoint)