Authentication: remove .storage section (#30408)

This commit is contained in:
c0ffeeca7 2023-12-19 11:09:27 +01:00 committed by GitHub
parent f400511d03
commit 2794e55ffd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 22 deletions

View File

@ -76,17 +76,7 @@ INFO (MainThread) [homeassistant.components.http.auth] You need to use a bearer
### Lost owner password
Before using the procedure below, make sure you explore options provided [here](/docs/locked_out).
While you should hopefully be storing your passwords in a password manager, if you lose the password associated with the owner account the only way to resolve this is to delete _all_ the authentication data. You do this by shutting down Home Assistant and deleting the following files from the `.storage/` folder in your [configuration folder](/docs/configuration/):
- `auth`
- `auth_provider.homeassistant`
- `onboarding`
- `hassio`
- `cloud`
When you start Home Assistant next, you'll be required to set up authentication again.
If you lose the password associated with the owner account, you need to [start a new onboarding process](/docs/locked_out/#to-prepare-the-system-to-start-a-new-onboarding-process).
### Error: invalid client id or redirect URL

View File

@ -96,15 +96,6 @@ If you lose the password associated with the owner account and the steps above d
- If you have a Home Assistant Green, [reset the Green](https://green.home-assistant.io/guides/reset/).
- If you have a Home Assistant Yellow, [reset the Yellow](https://yellow.home-assistant.io/guides/factory-reset/).
- If you have a Raspberry Pi, delete *all* the authentication data.
- Shut down Home Assistant.
- Remove your SD card and access it from your PC.
- Delete the following files from the `.storage/` folder in your [configuration folder](/docs/configuration/):
- `auth`
- `auth_provider.homeassistant`
- `onboarding`
- `hassio`
- `cloud`
## Recovering data for Home Assistant (including Supervised)

View File

@ -26,7 +26,9 @@ We will now create the owner's account of Home Assistant. This account is an adm
- Continue with the procedure on [restoring from backup](/common-tasks/os/#restoring-a-backup).
- Ignore the rest of this procedure. The following steps describe how to create a new installation, not how to restore from backup.
2. If this is your initial installation, select **Create my smart home**.
3. Enter a name, username, and password. Select **Create account**.
3. Enter a name, username, and password.
- Store the name, username, and password in a password manager. There is no way to recover the owner credentials.
- Select **Create account**.
![Set your username and password.](/images/getting-started/username.png)