code: def acquire_authorization_header(self):
          
          try:
              return self._acquire_authorization_header()
          except AdalError as error:
              if self._authentication_method is AuthenticationMethod.aad_username_password:
                  kwargs = {"username": self._username, "client_id": self._client_id}
              elif self._authentication_method is AuthenticationMethod.aad_application_key:
                  kwargs = {"client_id": self._client_id}
              elif self._authentication_method is AuthenticationMethod.aad_device_login:
                  kwargs = {"client_id": self._client_id}
              elif self._authentication_method is AuthenticationMethod.aad_application_certificate:
                  kwargs = {"client_id": self._client_id, "thumbprint": self._thumbprint}
              else:
                  raise error
  
              kwargs["resource"] = self._kusto_cluster
              kwargs["authority"] = self._adal_context.authority.url
  
              raise KustoAuthenticationError(self._authentication_method.value, error, **kwargs)
docs: Acquire tokens from AAD.