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",