Skip to content

Commit

Permalink
docs: include CredentialProviders class in docs (#1904)
Browse files Browse the repository at this point in the history
Co-authored-by: Håkon V. Treider <[email protected]>
  • Loading branch information
nodegard and haakonvt authored Sep 3, 2024
1 parent 2c7ec92 commit 2fa0318
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cognite/client/credentials.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ def load(cls, config: dict[str, Any] | str) -> CredentialProvider:
Note:
The dictionary must contain exactly one top level key, which is the type of the credential provider and must be one of the
following strings: "token", "client_credentials", "interactive", "device_code", "client_certificate". The value of the key
is a dictionary containing the configuration for the credential provider.
following strings: ``"token"``, ``"client_credentials"``, ``"interactive"``, ``"device_code"``, ``"client_certificate"``.
The value of the key is a dictionary containing the configuration for the credential provider.
Args:
config (dict[str, Any] | str): A dictionary or YAML/JSON string containing the configuration for the credential provider.
Expand Down
3 changes: 3 additions & 0 deletions docs/source/credential_providers.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
Credential Providers
====================
.. autoclass:: cognite.client.credentials.CredentialProvider
:members:
:member-order: bysource
.. autoclass:: cognite.client.credentials.Token
:members:
:member-order: bysource
Expand Down

0 comments on commit 2fa0318

Please sign in to comment.