Using the SDKs
You would have received an IDP_CLIENT_ID
and an IDP_CLIENT_SECRET
in an email when you signed up for the trial project. These should
be protected, as they will give anybody with these details access to all the capabilities in your project's sdk-client
group.
Use the credentials in the OAuth2 client credentials authentication flow. Here is an example from the Python SDK:
client = CogniteClient(
ClientConfig(
client_name=client_name,
base_url=os.environ["CDF_URL"],
project=os.environ["CDF_PROJECT"],
credentials=OAuthClientCredentials(
token_url=os.environ["IDP_TOKEN_URL"],
client_id=os.environ["IDP_CLIENT_ID"],
client_secret=os.environ["IDP_CLIENT_SECRET"],
scopes=[os.environ["IDP_SCOPES"]],
audience=os.environ["IDP_AUDIENCE"],
),
)
)
For more information on "How to use Python SDK", see Get started with Python SDK.