Skip to content

Commit

Permalink
Hide CDF auth (#1458)
Browse files Browse the repository at this point in the history
refactor: hide cdf authm
  • Loading branch information
doctrino authored Feb 13, 2025
1 parent 0e68ba2 commit fc9dfb2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cognite_toolkit/_cdf_tk/utils/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
from cognite_toolkit._version import __version__

LoginFlow: TypeAlias = Literal["client_credentials", "token", "device_code", "interactive"]
Provider: TypeAlias = Literal["entra_id", "cdf", "other"]
Provider: TypeAlias = Literal["entra_id", "other"]
VALID_LOGIN_FLOWS = get_args(LoginFlow)
VALID_PROVIDERS = get_args(Provider)

Expand All @@ -34,7 +34,7 @@
}
PROVIDER_DESCRIPTION = {
"entra_id": "Use Microsoft Entra ID to authenticate",
"cdf": "Use Cognite IDP to authenticate",
# "cdf": "Use Cognite IDP to authenticate",
"other": "Use other IDP to authenticate",
}

Expand Down
2 changes: 1 addition & 1 deletion cognite_toolkit/demo/_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def quickstart(
if cluster is None:
raise ValueError("CDF_CLUSTER is not set in the environment.")
self._env_vars = EnvironmentVariables(
PROVIDER="cdf",
PROVIDER="cdf", # type: ignore[arg-type]
LOGIN_FLOW="client_credentials",
CDF_CLUSTER=cluster,
CDF_PROJECT=self._client.config.project,
Expand Down

0 comments on commit fc9dfb2

Please sign in to comment.