Skip to content

Commit 94094cb

Browse files
authored
chore: clarify 403 response in PW migration hook (#2025)
1 parent f6e7be0 commit 94094cb

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

docs/kratos/manage-identities/25_import-user-accounts-identities.mdx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -594,7 +594,10 @@ The following steps are necessary to set up password migration using a web hook:
594594
After a successful response, the identity will be updated with the hashed password and the user will be logged in. The
595595
password migration hook will not be called again for this identity.
596596

597-
Any other response will be treated as an invalid password, and the user will be notified that the password is incorrect.
597+
If the password does not match, the webhook should return `403 Forbidden`, to indicate to the user that the password did not
598+
match.
599+
600+
Any other response will be treated as an unexpected error, and the user will not be logged in.
598601

599602
### Social sign-in connections
600603

0 commit comments

Comments
 (0)