From 74b24a267b2f9e5276508c4aee21e9d7480fe679 Mon Sep 17 00:00:00 2001 From: Ziad Arafat Date: Wed, 2 Dec 2026 10:17:46 -0700 Subject: [PATCH] Document required Authentik SSO for personal Vaultwarden --- README.md | 33 +++++++++++++++++++++------------ 1 file changed, 21 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index baf3949..c48d99a 100644 --- a/README.md +++ b/README.md @@ -67,23 +67,32 @@ bootstrap, open a new terminal to pick up the installed tools. For a custom instance, set `BW_SERVER` to the same URL in the shell where you run `dot secrets`. -2. If you are logged out, sign in with your vault email and master password. - The CLI prompts for the password and any supported two-step code. Capture - the session key without printing it: +2. Sign in using the method your vault requires. The **personal Vaultwarden + requires Authentik SSO**. Run this from a local desktop terminal so your + browser can complete the CLI's sign-in: + + ```bash + bw login --sso && + BW_SESSION="$(bw unlock --raw)" && export BW_SESSION + ``` + + If the personal vault prompts for an organization identifier, enter + `vaultwarden`. It is a placeholder for the self-hosted server's single + identity provider. For a work vault that requires SSO, use the identifier + supplied by your organization. Sign into the browser first, then use your + **vault master password** to unlock the CLI. If password login reports + **SSO sign-in is required**, use this SSO flow. + + For a server that allows password login, capture the session without + printing it: ```bash BW_SESSION="$(bw login 'your-vault-email@example.com' --raw)" && export BW_SESSION ``` - If password login is blocked by your sign-in method, use your **personal - API key** from **Settings → Security → Keys** in the web vault. Enter the - client ID and secret at the CLI prompts, then unlock with your master - password. - - ```bash - bw login --apikey && - BW_SESSION="$(bw unlock --raw)" && export BW_SESSION - ``` + If your server permits personal API-key login, you can use + `bw login --apikey` and then `bw unlock --raw`. The personal API key is + available under **Settings → Security → Keys** in the web vault. If `bw status` already shows `locked`, skip login and run only `BW_SESSION="$(bw unlock --raw)" && export BW_SESSION`. If it shows