Skip to content

Commit e810446

Browse files
authored
chore: Update swagger authorization docs (#2191)
1 parent 2a69aa2 commit e810446

File tree

2 files changed

+6
-10
lines changed

2 files changed

+6
-10
lines changed

README.rst

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -283,15 +283,11 @@ logging in to a renku instance with ``renku login`` and retrieving it from your
283283
renku configuration.
284284

285285
In a live deployment, the swagger documentation is available under ``https://<renku-endpoint>/swagger``.
286-
You can authorize the API by clicking ``Authorize`` and authenticating with Keycloak.
287-
Note that this requires you to know the Keycloak ``renku`` client secret, which
288-
can be fetched with ``kubectl``:
289-
290-
::
291-
292-
$ kubectl -n <namespace> get secret <namespace>-renku-gateway -ojson | jq -r .data.oidcClientSecret
293-
294-
Make sure to base64 decode it before copy/pasting into the swagger UI dialog.
286+
You can authorize the API by first logging into renku normally, then going to the
287+
swagger page, clicking ``Authorize`` and picking the ``oidc (OAuth2, authorization_code)``
288+
option. Leave the ``client_id`` as ``swagger`` and the ``client_secret`` empty, select
289+
all scopes and click ``Authorize``. You should now be logged in and you can send
290+
requests using the ``Try it out`` buttons on individual requests.
295291

296292

297293
Developing Renku

tests/cli/test_integration_datasets.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ def test_dataset_import_real_doi_warnings(runner, project, sleep_after):
172172

173173
result = runner.invoke(cli, ["dataset", "ls"])
174174
assert 0 == result.exit_code, result.output + str(result.stderr_bytes)
175-
assert "pyndl_naive_discr_v0.7.2" in result.output
175+
assert "pyndl_naive_discr_v0.8.1" in result.output
176176

177177

178178
@pytest.mark.parametrize(

0 commit comments

Comments
 (0)