From ea1f92cb0593d09f5a5b4aa3e8b3f2099b3f3873 Mon Sep 17 00:00:00 2001 From: Thomas B Date: Mon, 5 Jun 2023 05:16:53 -0400 Subject: [PATCH] website/docs: Update troubleshooting login.md (#5814) Update login.md Added instructions to recover the key via cli Signed-off-by: Thomas B --- website/docs/troubleshooting/login.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/website/docs/troubleshooting/login.md b/website/docs/troubleshooting/login.md index 488c49091..58930706d 100644 --- a/website/docs/troubleshooting/login.md +++ b/website/docs/troubleshooting/login.md @@ -14,10 +14,16 @@ To create the key, run the following command: docker-compose run --rm server create_recovery_key 10 akadmin ``` -or, for Kubernetes, run +For Kubernetes, run ``` kubectl exec -it deployment/authentik-worker -c authentik -- ak create_recovery_key 10 akadmin ``` +or, for CLI, run + +``` +ak create_recovery_key 10 akadmin +``` + This will output a link, that can be used to instantly gain access to authentik as the user specified above. The link is valid for amount of years specified above, in this case, 10 years.