Impact 2024: The Industrial Data and AI Conference for and by Users | Nominate Speakers Now for a Ch...
Try using OAuth authentication method. from cognite.client import CogniteClient, ClientConfigfrom cognite.client.credentials import OAuthClientCredentialstenant = "xyz"client_id = "xyz"scope = "xyz"cdf_cluster = "xyz"client_secret = "xyz"project_name="xyz"base_url= f"https://{cdf_cluster}.cognitedata.com"token_url= f"https://login.microsoftonline.com/{tenant}/oauth2/v2.0/token"creds = OAuthClientCredentials( token_url=token_url, client_id=client_id, client_secret=client_secret, scopes=scope, )cnf = ClientConfig(client_name="xyz", project=project_name, credentials=creds, base_url=base_url)client = CogniteClient(cnf)print(client.login.status()) fill in the environment details and this should work.
Already have an account? Login
Enter your username or e-mail address. We'll send you an e-mail with instructions to reset your password.
Sorry, we're still checking this file's contents to make sure it's safe to download. Please try again in a few minutes.
Sorry, our virus scanner detected that this file isn't safe to download.