diff --git a/docs/auth.rst b/docs/auth.rst index 04e6f41e5..dfc8a47e9 100644 --- a/docs/auth.rst +++ b/docs/auth.rst @@ -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` diff --git a/openeo/rest/connection.py b/openeo/rest/connection.py index ee8e9ef30..df6f9c3cc 100644 --- a/openeo/rest/connection.py +++ b/openeo/rest/connection.py @@ -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]: """