From 3cd7c7dd4924d431b1915dc9f5a4f80b2d49af05 Mon Sep 17 00:00:00 2001 From: "Babak K. Shandiz" Date: Wed, 29 May 2024 10:50:33 +0100 Subject: [PATCH 1/2] Replace `final-redirect-url` with `juju-dashboard-location` Signed-off-by: Babak K. Shandiz --- tutorial/deploy_jimm_microk8s.rst | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tutorial/deploy_jimm_microk8s.rst b/tutorial/deploy_jimm_microk8s.rst index 60a118b..7cccbbf 100644 --- a/tutorial/deploy_jimm_microk8s.rst +++ b/tutorial/deploy_jimm_microk8s.rst @@ -237,8 +237,13 @@ Run the following commands: # A private and public key for macaroon based authentication with Juju controllers. juju config jimm public-key="" juju config jimm private-key="" - # A final redirect URL for login, normally set to the URL of the Juju dashboard. - juju config jimm final-redirect-url="http://test-jimm.localhost/auth/whoami" + +Optionally, if you have deployed Juju Dashboard, you can configure JIMM to enable browser flow for authentication: + +.. code:: bash + + juju config jimm juju-dashboard-location="" + Note that the public and private key pairs must be generated by the `go macaroon bakery repository `__. To do this briefly run the following command, ensuring you have the ``go`` tool installed: From a429459dda1b08c61ee72503279caf229fb02e1d Mon Sep 17 00:00:00 2001 From: "Babak K. Shandiz" Date: Thu, 30 May 2024 11:30:02 +0100 Subject: [PATCH 2/2] Explain setting `juju-dashboard-url` to any URL Signed-off-by: Babak K. Shandiz --- tutorial/deploy_jimm_microk8s.rst | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tutorial/deploy_jimm_microk8s.rst b/tutorial/deploy_jimm_microk8s.rst index 7cccbbf..78fa665 100644 --- a/tutorial/deploy_jimm_microk8s.rst +++ b/tutorial/deploy_jimm_microk8s.rst @@ -244,6 +244,12 @@ Optionally, if you have deployed Juju Dashboard, you can configure JIMM to enabl juju config jimm juju-dashboard-location="" +.. note:: + However, in absence of a Juju Dashboard, you can still enable OAuth browser authentication flow by setting this parameter to any valid URL. For example: + + .. code:: bash + + juju config jimm juju-dashboard-location="http://test-jimm.localhost/auth/whoami" Note that the public and private key pairs must be generated by the `go macaroon bakery repository `__. To do this briefly run the following command, ensuring you have the ``go`` tool installed: