Impact 2024: The Industrial Data and AI Conference for and by Users | Nominate Speakers Now for a Ch...
Hi Vivek, Thanks for your response. I have replaced the scope entry amd am able to get a list of time series but still get an unauthorised error for listing assets.Any other ideas?Andy
I’m fighting a similar problem. I have used the js ClientId successfully but none of the authentication flows allow for a non interactive login. Here’s my working code for the Device Flow inside a django management command (should be easy to re-write for any other app). Even working out what values to use for these various parts was difficult.import asyncioimport atexitimport datetimeimport osimport timefrom channels.layers import get_channel_layerfrom cognite.client import ClientConfig, CogniteClientfrom cognite.client.credentials import OAuthClientCredentials, Tokenfrom django.core.management.base import BaseCommandfrom msal import ( ConfidentialClientApplication, PublicClientApplication, SerializableTokenCache,)# Contact Project Administrator to get theseTENANT_ID = "48d5043c-cf70-4c49-881c-c638f5796997"CLIENT_ID = "dea6bb8d-0f48-4bf0-a469-176fc19edc14"CLIENT_SECRET = "my_secret"CDF_CLUSTER = "api" # api, westeurope-1 etcCOGNITE_PROJECT = "publicdata"BASE_URL = f"https://
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.