Skip to content

Commit

Permalink
Don't show client id/secret in authenticate_oidc_refresh_token docs
Browse files Browse the repository at this point in the history
  • Loading branch information
soxofaan committed Sep 11, 2024
1 parent f5c0245 commit cd139bd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
5 changes: 1 addition & 4 deletions docs/auth.rst
Original file line number Diff line number Diff line change
Expand Up @@ -205,10 +205,7 @@ using :py:meth:`~openeo.rest.connection.Connection.authenticate_oidc_refresh_tok
.. code-block:: python
connection.authenticate_oidc_refresh_token(
client_secret=client_secret,
client_id=client_id
)
connection.authenticate_oidc_refresh_token()
You can also bootstrap the refresh token file
as described in :ref:`oidc_auth_get_refresh_token`
Expand Down
4 changes: 2 additions & 2 deletions openeo/rest/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -448,8 +448,8 @@ def _get_oidc_provider(
def _get_oidc_provider_and_client_info(
self,
provider_id: str,
client_id: Union[str, None],
client_secret: Union[str, None],
client_id: Union[str, None] = None,
client_secret: Union[str, None] = None,
default_client_grant_check: Union[None, GrantsChecker] = None,
) -> Tuple[str, OidcClientInfo]:
"""
Expand Down

0 comments on commit cd139bd

Please sign in to comment.