From c82c283aabc68a2d48b6e30c9a3d738e4c68980b Mon Sep 17 00:00:00 2001 From: anders-albert Date: Tue, 3 Dec 2024 14:38:25 +0100 Subject: [PATCH] fix: cogidp stuff --- cognite_toolkit/_cdf_tk/utils/auth.py | 2 +- cognite_toolkit/demo/_base.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/cognite_toolkit/_cdf_tk/utils/auth.py b/cognite_toolkit/_cdf_tk/utils/auth.py index 39a1f7dfa..fddafb6c9 100644 --- a/cognite_toolkit/_cdf_tk/utils/auth.py +++ b/cognite_toolkit/_cdf_tk/utils/auth.py @@ -597,7 +597,7 @@ def initialize_from_auth_variables(self, auth: AuthVariables, clear_cache: bool scopes=self._scopes, ) self._credentials_provider = OAuthInteractive(**self._credentials_args) - elif auth.login_flow == "client_credentials" and auth.provider == "cog_idp": + elif auth.login_flow == "client_credentials" and auth.provider == "cdf": if not (auth.client_id and auth.client_secret): raise AuthenticationError( "Login flow=client_credentials is set but missing required authentication " diff --git a/cognite_toolkit/demo/_base.py b/cognite_toolkit/demo/_base.py index 95a3b8ad6..964a98c85 100644 --- a/cognite_toolkit/demo/_base.py +++ b/cognite_toolkit/demo/_base.py @@ -86,6 +86,7 @@ def quickstart( print("Switching to the demo service principal...") self._cdf_tool_config = CDFToolConfig( auth_vars=AuthVariables( + provider="cdf", cluster=self._cdf_tool_config.cdf_cluster, project=self._cdf_tool_config.project, login_flow="client_credentials",