Is there any way to use the Azure Identity library to authenticate with the CDF python SDK? E.g. DefaultAzureCredential. That would enable users logged in with Azure CLI to re-use the login when authenticating to CDF, as well as applications using OIDC managed identities with no application secrets (e.g. AKS workload identities or GitHub Actions) to seamlessly login using the same code.
Something like this would be great:
from azure.identity import DefaultAzureCredential
from cognite.client import CogniteClient, ClientConfig
credential = DefaultAzureCredential()
client_config = ClientConfig(
credentials=credential, # Does not work today
project=COGNITE_PROJECT,
base_url=f"https://{CDF_CLUSTER}.cognitedata.com",
client_name=CLIENT_NAME,
)
cdf_client = CogniteClient(client_config)
Check the
documentation
Ask the
Community
Take a look
at
Academy
Cognite
Status
Page
Contact
Cognite Support