Skip to content

Commit 1a7f34b

Browse files
tonkku107sandhose
authored andcommitted
Add note about password schemes to migration docs
1 parent ca99cf1 commit 1a7f34b

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

docs/setup/migration.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,23 @@ This will output `WARN` entries for any identified actions and `ERROR` entries i
4040

4141
Follow the instructions in the [installation guide](installation.md) to install MAS alongside your existing homeserver.
4242

43+
#### Local passwords
44+
45+
Synapse uses bcrypt as its password hashing scheme while MAS defaults to using the newer argon2id.
46+
You will have to configure the version 1 scheme as bcrypt for migrated passwords to work.
47+
It is also recommended that you keep argon2id as version 2 so that once users log in, their hashes will be updated to the newer recommended scheme.
48+
49+
Example passwords configuration:
50+
```yml
51+
passwords:
52+
enabled: true
53+
schemes:
54+
- version: 1
55+
algorithm: bcrypt
56+
- version: 2
57+
algorithm: argon2id
58+
```
59+
4360
### Map any upstream SSO providers
4461
4562
If you are using an upstream SSO provider then you will need to provision the upstream provide in MAS manually.

0 commit comments

Comments
 (0)